[IronPython] co_flags again
anthonybaxter at gmail.com
Wed Dec 27 01:04:02 CET 2006
On 12/26/06, Sanghyeon Seo <sanxiyn at gmail.com> wrote:
> 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.
Yeah - it's a bit of a mess all around.
I opened issue #6805 for co_argcount and co_flags being wrong on the
codeplex issue tracker.
More information about the Ironpython-users