Thanks for writing this, Tim. On 7/21/10 11:11 AM, Tim Golden wrote:
The issue of a __format__ equivalent for bytes was also raised as was the idea of object methods to render an object as string or bytes, which could be used in the polymorphic functions above.
Does this mean bytes.__format__, or does it mean bytes.format? bytes.__format__ already exists, but it just calls object.__format__. I'm not sure what the desired functionality for bytes.__format__ would be.
If it means bytes.format, this would be relatively easy to do in CPython, if there's agreement to add it.
-- Eric. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com