This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author theisenm
Recipients theisenm
Date 2012-05-04.18:21:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336155672.66.0.579561581196.issue14723@psf.upfronthosting.co.za>
In-reply-to
Content
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 code 'i' for object of type 'NoneType'
History
Date User Action Args
2012-05-04 18:21:12theisenmsetrecipients: + theisenm
2012-05-04 18:21:12theisenmsetmessageid: <1336155672.66.0.579561581196.issue14723@psf.upfronthosting.co.za>
2012-05-04 18:21:12theisenmlinkissue14723 messages
2012-05-04 18:21:11theisenmcreate