[IronPython] possible bug with __delattr__ in Ipy 2.6

Idan Zaltzberg idan at cloudshare.com
Sun May 30 15:50:13 CEST 2010


Hi,

In IronPython 2.6 I ran the following code:



class A(object):

     def f(self):

             self.__delattr__('x')

a = A()

a.x=1

a.f()

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "<stdin>", line 3, in f

AttributeError: 'A' object has no attribute 'x'





This code runs ok on cpython so I'm guessing this is bug…
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100530/8dd3b64a/attachment.html>


More information about the Ironpython-users mailing list