[IronPython] __module__ of FunctionType
Dino Viehland
dinov at microsoft.com
Wed Jun 17 19:20:09 CEST 2009
Looks like this is because type.__module__ is not a data descriptor.
I believe I have a fix.
-----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