As part of implementing PEP 3101, I need to add __format__ to object, to
achieve the equivalent of:
class object:
def __format__(self, format_spec):
return format(str(self), format_spec)
I've added __format__ to int, unicode, etc., but I can't figure out
where or how to add it to object.
Any pointers are appreciated. Something as simple as "look at foo.c" or
"grep for __baz__" would be good enough.
Thanks!
Eric.
_______________________________________________
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