Menu

#33 add_registration_code behavior is inconsistent

open
nobody
None
5
2011-10-11
2011-10-11
No

The behavior of the "add_registration_code" method is inconsistent between the pyplusplus.decl_wrappers.class_wrapper.class_t and pyplusplus.module_builder.boost_python_builder.builder_t types.

pyplusplus.decl_wrappers.class_wrapper.class_t.add_registration_code doesn't require a "def" member function call to be prefixed with a "." or suffixed with a ";".
pyplusplus.module_builder.boost_python_builder.builder_t.add_registration_code does require a "def" free function call to be prefixed with a "bp::" and suffixed with a ";".
It would be nice if the add_registration_code method would always add the necessary prefix and suffix as necessary regardless of which object it is an attribute of.

This bug was found in revision 1856.

Discussion


Log in to post a comment.