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 lemburg
Recipients amaury.forgeotdarc, benjamin.peterson, christoph, davidfraser, georg.brandl, hodgestar, lemburg, ncoghlan, pitrou
Date 2008-06-11.16:50:20
SpamBayes Score 0.18763535
Marked as misclassified No
Message-id <>
In-reply-to <>
On 2008-06-11 16:49, Nick Coghlan wrote:
> Nick Coghlan <> added the comment:
> I'm not sure adding a dedicated method slot would be worth the hassle
> involved - Py3k drop backs to just the tp_str slot anyway, and the only
> thing you gain with a tp_unicode slot over _PyType_Lookup of a
> __unicode__ attribute is a small reduction in memory usage and a slight
> speed increase.

AFAIK, _PyType_Lookup will only work for base types, ie. objects
subclassing from object. C extension types often do not inherit from
object, since the attribute access mechanisms and object creation
are a lot simpler when not doing so.
Date User Action Args
2008-06-11 16:50:28lemburgsetspambayes_score: 0.187635 -> 0.18763535
recipients: + lemburg, georg.brandl, amaury.forgeotdarc, ncoghlan, davidfraser, pitrou, benjamin.peterson, christoph, hodgestar
2008-06-11 16:50:26lemburglinkissue2517 messages
2008-06-11 16:50:21lemburgcreate