<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt">You can use<br><br>help(your_function)<br><br>to get information about the arguments.<br><br>The signature with default arguments is in the docstring (unless you<br>turn this feature off).<br><br>Boost.Python supports overloads; the inspect module is not aware of<br>this.<br><br>Ralf<br><br><div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 10pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><b><span style="font-weight: bold;">To:</span></b> cplusplus-sig@python.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, April 21, 2011 6:48 AM<br><b><span style="font-weight: bold;">Subject:</span></b>
Re: [C++-sig] inspect module and Boost.Python.function<br></font><br>
<div id="yiv2044442380">Hi all,<br><br>I would like to get a list of the arguments of some Boost Python functions in a python program.<br>So, I was thinking of using the inspect module and the getargspec function.<br>However, I get an error: "arg is not a Python function".<br>
I'm using python 2.6 and boost python 1.42.<br><br>Is it possible to combine inspect and boost python function ?<br>Is there a way to get the arguments of a Boost Python function in a python program ?<br><br>Thanks,<br>
<br>Jean Felder<br>
</div><br>_______________________________________________<br>Cplusplus-sig mailing list<br><a ymailto="mailto:Cplusplus-sig@python.org" href="mailto:Cplusplus-sig@python.org">Cplusplus-sig@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/cplusplus-sig" target="_blank">http://mail.python.org/mailman/listinfo/cplusplus-sig</a><br><br></div></div></blockquote></div></div></body></html>