[IronPython] __module__ of FunctionType

Seo Sanghyeon sanxiyn at gmail.com
Wed Jun 17 12:03:42 CEST 2009


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



More information about the Ironpython-users mailing list