<br><br><div><span class="gmail_quote">On 9/5/06, <b class="gmail_sendername">Georg Brandl</b> <<a href="mailto:g.brandl@gmx.net">g.brandl@gmx.net</a>> 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>><br>><br>> On 9/4/06, *Neal Norwitz* <<a href="mailto:nnorwitz@gmail.com">nnorwitz@gmail.com</a><br>> <mailto:<a href="mailto:nnorwitz@gmail.com">nnorwitz@gmail.com</a>>> wrote:
<br>><br>> There are 3 bugs currently listed in PEP 356 as blocking:<br>> <a href="http://python.org/sf/1551432">http://python.org/sf/1551432</a> - __unicode__ breaks on<br>> exception classes
<br>><br>><br>> I replied on the bug report, but might as well comment here.<br>><br>> The problem with this bug is that BaseException now defines a<br>> __unicode__() method in its PyMethodDef. That intercepts the unicode()
<br>> call on the class and it complains it was not handed an instance. I<br>> guess the only way to fix this is to toss out the __unicode__() method<br>> and change the tp_str function to return Unicode as needed (unless
<br>> someone else has a better idea). 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>