Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment:

On 2008-06-11 16:49, Nick Coghlan wrote:
> Nick Coghlan <[EMAIL PROTECTED]> 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.

_______________________________________
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

Reply via email to