add_function doesn't use custom_name for generated wrapper code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyBindGen |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
The Module.add_function method uses the normal name instead of the custom_name for the generated wrapper function's name.
Class.add_method handles this correctly so that if I were to call the following:
cls.
cls.
It produces:
_wrap_
_wrap_
However, the same thing with add_function:
mod.
mod.
Will produce:
_wrap_
_wrap_
and cause the error:
redefinition of ‘PyObject* _wrap_modulenam
description: | updated |
Submitting patch.