Movatterモバイル変換


[0]ホーム

URL:


Self descibing scripts

Michael Hudsonmwh21 at cam.ac.uk
Mon Apr 2 10:53:42 EDT 2001


"Neil Benn" <neil.benn at cambridgeantibody.com> writes:>             Oooo, thanks Fredrik, that's close - the only problem is> that it doesn't return parameters required for the methods.  D'ya> know if it is possible to do that?Depends a bit what you want.  Python has default arguments, * and **style args and no static type information, so it's harder to give ameaningful answer to your question.  You could try Ping's "inpect"module, which is part of Python 2.1 but can also be found athttp://www.lfw.org/python/inspect.pywhich has a "getargspec" function (amongst much other stuff!) thatgets all the information in a neat form.Cheers,M.--   The gripping hand is really that there are morons everywhere, it's  just that the Americon morons are funnier than average.                              -- Pim van Riezen, alt.sysadmin.recovery


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp