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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to