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 terry.reedy
Recipients georg.brandl, terry.reedy
Date 2009-05-07.19:31:48
SpamBayes Score 2.5410747e-09
Marked as misclassified No
Message-id <1241724711.12.0.650660352068.issue5963@psf.upfronthosting.co.za>
In-reply-to
Content
String Services / Format Specification Mini-Language (7.1.3.1 in 3.1)

"The precision is ignored for integer values."
in 3.0.1 and 3.1.b1 and, I presume in 2.6/7 doc

should be "A precision is not allowed for integer values."

(3.0.1)
>> format(10, '3x')
'  a'
>>> format(10, '.3x')
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    format(10, '.3x')
ValueError: Precision not allowed in integer format specifier

(I assume but cannot check that 2.6/7 behave the same.)
History
Date User Action Args
2009-05-07 19:31:51terry.reedysetrecipients: + terry.reedy, georg.brandl
2009-05-07 19:31:51terry.reedysetmessageid: <1241724711.12.0.650660352068.issue5963@psf.upfronthosting.co.za>
2009-05-07 19:31:49terry.reedylinkissue5963 messages
2009-05-07 19:31:48terry.reedycreate