On Thursday 09 August 2007 00:54:47 Guido van Rossum wrote: > On 8/8/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Victor Stinner just made a good point at #python. The py3k has no magic > > method and type slot for bytes (...) > > I can think of a bunch of use cases for a magic method. > > Such as?
I'm writting on email module and I guess that some __str__ methods should return bytes instead of str (and so should be renamed to __bytes__). Maybe the one of Message class (Lib/email/message.py). Victor Stinner aka haypo http://hachoir.org/ _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
