Message67994
| 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 | <48500244.6060108@egenix.com> |
| In-reply-to | <1213195760.84.0.599786243353.issue2517@psf.upfronthosting.co.za> |
| Content | |
|---|---|
On 2008-06-11 16:49, Nick Coghlan wrote: > Nick Coghlan <ncoghlan@gmail.com> 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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-06-11 16:50:28 | lemburg | set | spambayes_score: 0.187635 -> 0.18763535 recipients: + lemburg, georg.brandl, amaury.forgeotdarc, ncoghlan, davidfraser, pitrou, benjamin.peterson, christoph, hodgestar |
| 2008-06-11 16:50:26 | lemburg | link | issue2517 messages |
| 2008-06-11 16:50:21 | lemburg | create | |