[IronPython] __module__ of FunctionType
Dino Viehland
dinov at microsoft.com
Tue Jun 23 22:21:10 CEST 2009
This is now fixed in the latest sources (and strerror is now implemented as well).
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Seo Sanghyeon
Sent: Wednesday, June 17, 2009 3:04 AM
To: Discussion of IronPython
Subject: [IronPython] __module__ of FunctionType
Following program prints different result between CPython and IronPython:
def f(): pass
print type(f).__module__
CPython: __builtin__
IronPython: <property# __module__ on function>
This breaks codes which assume __module__ is a string.
--
Seo Sanghyeon
_______________________________________________
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