[C++-sig] Re: boost python and python help
ben at transversal.com
Wed Apr 21 15:21:54 CEST 2004
Thanks, yes it does! Unfortunately this doesn't help when you can't remember
the function name. Sigh, guess its dir(module) for me!
On Wednesday 21 April 2004 14:24, Nikolay Mladenov wrote:
> As a workaround you can try
> >>> help(module_name.function_name)
> which works for me.
> Ben Young wrote:
> > I know it is not a major issue, but did you know that free functions in
> > boost::python ified modules do not show up in the interactive help.
> > Looking into this (pydoc lines 558) it appears that for the free
> > functions
> > >>> inspect.isroutine(function)
> > passes, but
> > >>> if inspect.isbuiltin(function) or inspect.getmodule(function) is
> > >>> module:
> > fails, mainly because inspect.getmodule(function) returns None.
> > I'm not sure if there is a nice solution, as the functions are of a
> > special type, but this can be quite annoying when playing around with new
> > APIs.
> > Cheers,
> > Ben Young
More information about the Cplusplus-sig