<div dir="ltr">cool<br><br><div class="gmail_quote">On Wed, Jun 23, 2010 at 3:39 PM, Michael Foord <span dir="ltr">&lt;<a href="mailto:fuzzyman@voidspace.org.uk">fuzzyman@voidspace.org.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  

<div bgcolor="#ffffff" text="#000000"><div><div></div><div class="h5">
On 23/06/2010 13:38, Ronnie Maor wrote:
<blockquote 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>...     def __delattr__(self,name):</div>
  <div>...             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>  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;</div>
  <div>  File &quot;&lt;stdin&gt;&quot;, line 3, in __delattr__</div>
  <div>AttributeError: &#39;A&#39; object has no attribute &#39;x&#39;</div>
  <div><br>
  </div>
  </div>
</blockquote>
<br></div></div>
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 type="cite">
  <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
  </pre>
</blockquote>
<br>
<br>
<pre cols="72">-- 
<a href="http://www.ironpythoninaction.com/" target="_blank">http://www.ironpythoninaction.com/</a>
<a href="http://www.voidspace.org.uk/blog" target="_blank">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 (”BOGUS AGREEMENTS”) 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>
</div>

</blockquote></div><br></div>