[IronPython] setattr and module

Sanghyeon Seo sanxiyn at gmail.com
Fri Nov 2 07:56:46 PDT 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 Users mailing list