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 r.david.murray
Recipients amaury.forgeotdarc, barry, docs@python, eric.smith, lemburg, r.david.murray
Date 2010-11-10.15:24:56
SpamBayes Score 5.3639106e-09
Marked as misclassified No
Message-id <1289402808.72.0.397703728938.issue10379@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah, obviously that language can be improved.  'exactly' was meant to imply 'nothing but', but clearly it doesn't.

If we want to restore more stringent backward compatibility and allow trailing text, it would be possible to make format an alias for format_string.  I'm not sure this is a good idea, but it is the most sensible way to restore backward compatibility while still fixing the original bug that I can think of.

Or...perhaps there is little need of both 'format' and 'format_string' as public APIs, and we could deprecate (without removing) one of them.

On the other hand, I believe the original bug affects the Ubuntu code that triggered this report...in other words, absent this fix chances are there would eventually have been a bug report against that code that would have necessitated that it change to use format_string anyway in order to get the correct locale-specific number formatting.
History
Date User Action Args
2010-11-10 15:26:48r.david.murraysetrecipients: + r.david.murray, lemburg, barry, amaury.forgeotdarc, eric.smith, docs@python
2010-11-10 15:26:48r.david.murraysetmessageid: <1289402808.72.0.397703728938.issue10379@psf.upfronthosting.co.za>
2010-11-10 15:24:56r.david.murraylinkissue10379 messages
2010-11-10 15:24:56r.david.murraycreate