[IronPython] Getting attributes from instancemethod

Sanghyeon Seo sanxiyn at gmail.com
Wed May 10 05:22:43 CEST 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 Ironpython-users mailing list