Author eric.smith
Recipients eric.smith, mark.dickinson, rhettinger
Date 2009-04-17.14:38:02
SpamBayes Score 1.99024e-12
Marked as misclassified No
Message-id <1239979083.96.0.980921047478.issue5782@psf.upfronthosting.co.za>
In-reply-to
Content
PEP 378 says that the ',' format option applies to types 'd', 'e', 'f',
'g', 'E', 'G', '%' and 'F'. I think this should also be extended to
include the empty type ''.

This only makes a difference for floats. For ints, '' is the same as
'd', but for floats '' is distinct. In 3.1 we get this behavior:

>>> format(1.2, '010.2')
'00000001.2'
>>> format(1.2, '010,.2')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Cannot specify ',' with ''.

I think the second example should be valid.
History
Date User Action Args
2009-04-17 14:38:04eric.smithsetrecipients: + eric.smith, rhettinger, mark.dickinson
2009-04-17 14:38:03eric.smithsetmessageid: <1239979083.96.0.980921047478.issue5782@psf.upfronthosting.co.za>
2009-04-17 14:38:02eric.smithlinkissue5782 messages
2009-04-17 14:38:02eric.smithcreate