R. David Murray <rdmur...@bitdance.com> added the comment:

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.

----------
nosy: +lemburg

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10379>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to