[C++-sig] inspect module and Boost.Python.function
Hi all, I would like to get a list of the arguments of some Boost Python functions in a python program. So, I was thinking of using the inspect module and the getargspec function. However, I get an error: "arg is not a Python function". I'm using python 2.6 and boost python 1.42. Is it possible to combine inspect and boost python function ? Is there a way to get the arguments of a Boost Python function in a python program ? Thanks, Jean Felder ___ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig
Re: [C++-sig] inspect module and Boost.Python.function
You can use help(your_function) to get information about the arguments. The signature with default arguments is in the docstring (unless you turn this feature off). Boost.Python supports overloads; the inspect module is not aware of this. Ralf To: [email protected] >Sent: Thursday, April 21, 2011 6:48 AM >Subject: Re: [C++-sig] inspect module and Boost.Python.function > > >Hi all, > >I would like to get a list of the arguments of some Boost Python functions in >a python program. >So, I was thinking of using the inspect module and the getargspec function. >However, I get an error: "arg is not a Python function". >I'm using python 2.6 and boost python 1.42. > >Is it possible to combine inspect and boost python function ? >Is there a way to get the arguments of a Boost Python function in a python >program ? > >Thanks, > >Jean Felder > >___ >Cplusplus-sig mailing list >[email protected] >http://mail.python.org/mailman/listinfo/cplusplus-sig > >___ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig
[C++-sig] group meeting today
Today we will have another technical group meeting. Alex and I will discuss approaches to canonical transformations and Lorentz boosts in space charge calculations. --Jim ___ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig
Re: [C++-sig] inspect module and Boost.Python.function
Thanks. I will use it. Jean 2011/4/21 Ralf W. Grosse-Kunstleve > > You can use > > help(your_function) > > to get information about the arguments. > > The signature with default arguments is in the docstring (unless you > turn this feature off). > > Boost.Python supports overloads; the inspect module is not aware of > this. > > Ralf > > To: [email protected] > Sent: Thursday, April 21, 2011 6:48 AM > Subject: Re: [C++-sig] inspect module and Boost.Python.function > > Hi all, > > I would like to get a list of the arguments of some Boost Python functions in > a python program. > So, I was thinking of using the inspect module and the getargspec function. > However, I get an error: "arg is not a Python function". > I'm using python 2.6 and boost python 1.42. > > Is it possible to combine inspect and boost python function ? > Is there a way to get the arguments of a Boost Python function in a python > program ? > > Thanks, > > Jean Felder > > ___ > Cplusplus-sig mailing list > [email protected] > http://mail.python.org/mailman/listinfo/cplusplus-sig > > > ___ > Cplusplus-sig mailing list > [email protected] > http://mail.python.org/mailman/listinfo/cplusplus-sig ___ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig
Re: [C++-sig] group meeting today
I apologize for my clumsy fingers. This message was meant for a different mailing list. On 04/21/2011 11:04 AM, James Amundson wrote: Today we will have another technical group meeting. Alex and I will discuss approaches to canonical transformations and Lorentz boosts in space charge calculations. --Jim ___ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig ___ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig
