[issue14723] Misleading error message for str.format()

2012-05-04 Thread Eric V. Smith
Eric V. Smith added the comment: This is a duplicate of issue 13790. See the comments there for why it works this way. -- nosy: +eric.smith resolution: -> duplicate status: open -> closed superseder: -> In str.format an incorrect error message for list, tuple, dict, set ___

[issue14723] Misleading error message for str.format()

2012-05-04 Thread Mark Theisen
New submission from Mark Theisen : When I run this code: '{0:i}'.format(None) I get this error: ValueError: Unknown format code 'i' for object of type 'str' This seems misleading because None is of Type 'NoneType'. I was expecting the error to say something to the effect of: Unknown format cod