[IronPython] inspect.getargspec
Michael Foord
fuzzyman at voidspace.org.uk
Wed Dec 27 21:28:57 CET 2006
Sanghyeon Seo wrote:
> https://svn.sourceforge.net/svnroot/fepy/trunk/patches/1.1a1/patch-ironpython-flags-and-argcount
> https://svn.sourceforge.net/svnroot/fepy/trunk/patches/stdlib/2.4.4/patch-stdlib-inspect-avoid-disassemble
>
> patch-ironpython-flags-and-argcount
> This patch fixes bugs in co_flags and co_argcount attributes of code objects.
>
> patch-stdlib-inspect-avoid-disassemble
> This patch lets inspect.getargspec() to avoid disassembling Python
> bytecode when anonymous tuple arguments are not present.
>
> This should suffice to let inspect.getargspec work on IronPython,
> except for anonymous tuple arguments.
>
Thanks for the work guys.
I need the anonymous tuple arguments so I've gone with a CPython
solution (and a host of messy workarounds to fake the .NET imports).
I hope the MS team can find a workaround to allow getargspec to work (an
alternative API on code objects to determine the args / keywargs).
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/articles.shtml
> Enjoy!
>
More information about the Ironpython-users
mailing list