[IronPython] Getting attributes from instancemethod

Sanghyeon Seo sanxiyn at gmail.com
Tue May 9 20:22:43 PDT 2006


Hello, this is just a clarification of a bug reported by Predrag Radovic:
http://lists.ironpython.com/pipermail/users-ironpython.com/2006-May/002278.html

# test.py
class C:
    def m(self):
        pass
    m.x = 1
im = C.m
print im.x

# CPython
1

# IronPython
AttributeError: 'instancemethod' object has no attribute 'x'

Seo Sanghyeon


More information about the users mailing list