Eric V. Smith <e...@trueblade.com> added the comment:

The existing exceptions use the text "format code" for what the documentation 
calls "type":

>>> format(9, "h")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Unknown format code 'h' for object of type 'int'

So to be consistent, it should say:

>>> format(9, "xx10f")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Invalid format code

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13811>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to