[IronPython] Empty func_defaults

Dino Viehland dinov at exchange.microsoft.com
Mon Jan 22 23:09:30 CET 2007


And lucky for us both of those evaluate to false which at least makes the situation somewhat reasonable unless someone checks for equality to None directly.

Anyway, we should match the behavior.  I've opened CodePlex bug #7532 for this (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=7532).

Thanks for the report Seo!

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
Sent: Sunday, January 21, 2007 8:07 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Empty func_defaults

Sanghyeon Seo wrote:
> def f(): pass
> print f.func_defaults
>
> CPython prints None, IronPython prints ().
>

Lamentably the IronPython behaviour, whilst wrong, is better. :-)

Fuzzyman
http://www.voidspace.org.uk/ironpython/index.shtml

_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list