[IronPython] setattr and module

Sanghyeon Seo sanxiyn at gmail.com
Fri Nov 2 15:56:46 CET 2007


# x.py
# empty

# test.py
import x
setattr(x, 'a', 1)
print x.a

AttributeError: 'module' object has no attribute 'a'

-- 
Seo Sanghyeon



More information about the Ironpython-users mailing list