<br><br><div><span class="gmail_quote">On 9/5/06, <b class="gmail_sendername">Georg Brandl</b> &lt;<a href="mailto:g.brandl@gmx.net">g.brandl@gmx.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Brett Cannon wrote:<br>&gt;<br>&gt;<br>&gt; On 9/4/06, *Neal Norwitz* &lt;<a href="mailto:nnorwitz@gmail.com">nnorwitz@gmail.com</a><br>&gt; &lt;mailto:<a href="mailto:nnorwitz@gmail.com">nnorwitz@gmail.com</a>&gt;&gt; wrote:
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; There are 3 bugs currently listed in PEP 356 as blocking:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://python.org/sf/1551432">http://python.org/sf/1551432</a> - __unicode__ breaks on<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; exception classes
<br>&gt;<br>&gt;<br>&gt; I replied on the bug report, but might as well comment here.<br>&gt;<br>&gt; The problem with this bug is that BaseException now defines a<br>&gt; __unicode__() method in its PyMethodDef.&nbsp;&nbsp;That intercepts the unicode()
<br>&gt; call on the class and it complains it was not handed an instance.&nbsp;&nbsp;I<br>&gt; guess the only way to fix this is to toss out the __unicode__() method<br>&gt; and change the tp_str function to return Unicode as needed (unless
<br>&gt; someone else has a better idea).&nbsp;&nbsp;Or the bug can be closed as Won't Fix.<br><br>Throwing out the __unicode__ method is fine with me -- exceptions didn't<br>have one before the NeedForSpeed rewrite, so there would be no loss in
<br>functionality.</blockquote><div><br><br>If this step is done and the tp_str function is not changed to return Unicode as needed, PEP 352 will need to be updated.<br><br>-Brett<br></div><br></div><br>