[C++-sig] Boost.Python functions and Python functions

Daniel Holth dholth at fastmail.fm
Sun Feb 1 01:43:10 CET 2004


Boost.Python functions don't inherit from the Python function type, but
if they did the current version of pydoc would show their docstring.

So, if we want help(boost_module_with_functions) to show something, we
can change pydoc so it knows about Boost.Python functions, or change
Boost.Python functions to inherit from the Python function type.

Is there a good reason that Boost doesn't currently subtype Python's
Function Type for its functions?

- dwh





More information about the Cplusplus-sig mailing list