[Python-Dev] 2.5 status (original) (raw)
Brett Cannon brett at python.org
Tue Sep 5 21:19:52 CEST 2006
- Previous message: [Python-Dev] 2.5 status
- Next message: [Python-Dev] 2.5 status
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 9/5/06, Georg Brandl <g.brandl at gmx.net> wrote:
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 tpstr 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.
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.
-Brett -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20060905/a3423370/attachment.html
- Previous message: [Python-Dev] 2.5 status
- Next message: [Python-Dev] 2.5 status
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]