[IronPython] Empty func_defaults

Michael Foord fuzzyman at voidspace.org.uk
Sun Jan 21 17:07:04 CET 2007


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




More information about the Ironpython-users mailing list