R. David Murray <[email protected]> added the comment:
No, it wouldn't. I expect
"{}".format(x)
to produce something for an arbitrary x. Breaking that would break a
fundamental Python contract.
Improving the error message for 'd' is more possible. Perhaps "the format code
'd' is not implemented by objects of type <type>"?
----------
nosy: +r.david.murray
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13790>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com