<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 23/06/2010 13:38, Ronnie Maor wrote:
<blockquote
 cite="mid:AANLkTimJh0gO6pk1C5549cLzu2E3iiL_9yY4I8FjbXEB@mail.gmail.com"
 type="cite">
  <div dir="ltr">
  <div>The following code works in CPython 2.6.2, but is broken in both
IPy 2.6 and 2.6.1</div>
  <div><br>
  </div>
  <div>&gt;&gt;&gt; class A(object):</div>
  <div>... &nbsp; &nbsp; def __delattr__(self,name):</div>
  <div>... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; object.__delattr__(self,name)</div>
  <div>...</div>
  <div>&gt;&gt;&gt; a = A()</div>
  <div>&gt;&gt;&gt; a.x = 3</div>
  <div>&gt;&gt;&gt; del a.x</div>
  <div>Traceback (most recent call last):</div>
  <div>&nbsp;&nbsp;File "&lt;stdin&gt;", line 1, in &lt;module&gt;</div>
  <div>&nbsp;&nbsp;File "&lt;stdin&gt;", line 3, in __delattr__</div>
  <div>AttributeError: 'A' object has no attribute 'x'</div>
  <div><br>
  </div>
  </div>
</blockquote>
<br>
You are correct, but this has already been reported and is fixed on
trunk. The fix will be in 2.6.2 which will hopefully be released
soon... :-)<br>
<br>
All the best,<br>
<br>
Michael<br>
<br>
<blockquote
 cite="mid:AANLkTimJh0gO6pk1C5549cLzu2E3iiL_9yY4I8FjbXEB@mail.gmail.com"
 type="cite">
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a>
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/blog">http://www.voidspace.org.uk/blog</a>

READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (&#8221;BOGUS AGREEMENTS&#8221;) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.

</pre>
</body>
</html>