This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients amaury.forgeotdarc, benjamin.peterson, christoph, davidfraser, georg.brandl, hodgestar, lemburg, pitrou
Date 2008-06-09.19:09:02
SpamBayes Score 0.0010048283
Marked as misclassified No
Message-id <1afaf6160806091209r3dd93ca6ndb4ce088c0358d5a@mail.gmail.com>
In-reply-to <1213038297.19.0.294021763546.issue2517@psf.upfronthosting.co.za>
Content
On Mon, Jun 9, 2008 at 2:04 PM, David Fraser <report@bugs.python.org> wrote:
>
> David Fraser <davidf@sjsoft.com> added the comment:
>
> So I've got a follow-up patch that adds tp_unicode.
> Caveat that I've never done anything like this before and it's almost
> certain to be wrong.

Unfortunately, adding a slot is a bit more complicated. You have to
deal with inheritance and such. Have a look in typeobject.c for all
the gory details. I'd recommend you write to python-dev before going
on the undertaking, though.

>
> It does however generate the desired result in this case :-)
>
> Added file: http://bugs.python.org/file10562/tp_unicode_exception.patch
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue2517>
> _______________________________________
>
History
Date User Action Args
2008-06-09 19:09:04benjamin.petersonsetspambayes_score: 0.00100483 -> 0.0010048283
recipients: + benjamin.peterson, lemburg, georg.brandl, amaury.forgeotdarc, davidfraser, pitrou, christoph, hodgestar
2008-06-09 19:09:03benjamin.petersonlinkissue2517 messages
2008-06-09 19:09:03benjamin.petersoncreate