[issue7994] object.__format__ should reject format strings
R. David Murray
report at bugs.python.org
Thu Mar 20 01:41:16 CET 2014
R. David Murray added the comment:
NoneType is a subclass of object.
>>> class Foo(object):
... pass
...
>>> f = Foo()
>>> f.__format__
<built-in method __format__ of Foo object at 0xb71543b4>
ie: the exception is being raised by object.__format__, as provided for by this issue.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7994>
_______________________________________
More information about the Python-bugs-list
mailing list