[IronPython] co_flags again

Sanghyeon Seo sanxiyn at gmail.com
Tue Dec 26 07:25:59 CET 2006


Eh, I realized that my previous take on this was flawed. IronPython's
FunctionN is *not* VarArgs. IronPython's FunctionX is used for both
VarArgs and KwArgs.

In other words:

def foo(a, b, c, d, e, f): pass # 6 arguments to force FunctionN
CO_VARARGS = 4
print foo.func_code.co_flags & CO_VARARGS

It prints 0 on CPython and 4 on IronPython.

/me is trying to put together a solution for the issue Michael raised:
inspect.getargspec().

-- 
Seo Sanghyeon



More information about the Ironpython-users mailing list