Benjamin Peterson <[EMAIL PROTECTED]> added the comment: On Mon, Jun 9, 2008 at 2:04 PM, David Fraser <[EMAIL PROTECTED]> wrote: > > David Fraser <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> > <http://bugs.python.org/issue2517> > _______________________________________ > _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2517> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com