[Python-Dev] Exception.__unicode__ and tp_unicode

Simon Cross hodgestar+pythondev at gmail.com
Wed Jun 11 13:56:31 CEST 2008


On Wed, Jun 11, 2008 at 11:34 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> 4) Fix PyObject_Unicode to not retrieve __unicode__ from new-style
> instances, and instead only look for the method on their types (similar to
> the way PyObject_Format looks up the __format__ method).

Thanks for the suggestion Nick. I've added a patch which implements it
to the bug.

Schiavo
Simon


More information about the Python-Dev mailing list