On Feb 13, 2008 5:28 AM, Eric Smith <[EMAIL PROTECTED]> wrote: > When backporting PEP 3101, do we want to add __format__ to classic > classes? If so, could someone give me a pointer on how to implement > this? I don't see where to hook it up.
You just have to get the '__format__' attribute and call it if it exists. Isn't that how you do it for new-style classes too? -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ 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