A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-September/068637.html below:

[Python-Dev] 2.5 status

[Python-Dev] 2.5 status [Python-Dev] 2.5 statusGeorg Brandl g.brandl at gmx.net
Tue Sep 5 20:49:01 CEST 2006
Brett Cannon wrote:
> 
> 
> On 9/4/06, *Neal Norwitz* <nnorwitz at gmail.com
> <mailto:nnorwitz at gmail.com>> wrote:
> 
>     There are 3 bugs currently listed in PEP 356 as blocking:
>             http://python.org/sf/1551432 - __unicode__ breaks on
>     exception classes
> 
> 
> I replied on the bug report, but might as well comment here.
> 
> The problem with this bug is that BaseException now defines a
> __unicode__() method in its PyMethodDef.  That intercepts the unicode()
> call on the class and it complains it was not handed an instance.  I
> guess the only way to fix this is to toss out the __unicode__() method
> and change the tp_str function to return Unicode as needed (unless
> someone else has a better idea).  Or the bug can be closed as Won't Fix.

Throwing out the __unicode__ method is fine with me -- exceptions didn't
have one before the NeedForSpeed rewrite, so there would be no loss in
functionality.

Georg

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4