[IronPython] possible bug with __delattr__ in Ipy 2.6

Dino Viehland dinov at microsoft.com
Tue Jun 1 19:49:14 CEST 2010


This is definitely a bug - I've filed this as http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=27247

Thanks for the report!

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Idan Zaltzberg
Sent: Sunday, May 30, 2010 6:50 AM
To: Discussion of IronPython
Subject: [IronPython] possible bug with __delattr__ in Ipy 2.6

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/20100601/b67ab962/attachment.html>


More information about the Ironpython-users mailing list