[IronPython] __module__ of FunctionType

Seo Sanghyeon sanxiyn at gmail.com
Wed Jun 17 03:03:42 PDT 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 Users mailing list