« Return to Thread: __module__ of FunctionType

__module__ of FunctionType

by Seo Sanghyeon-3 :: Rate this Message:

Reply to Author | View in Thread

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@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

 « Return to Thread: __module__ of FunctionType