[issue12014] str.format parses replacement field incorrectly
R. David Murray
report at bugs.python.org
Fri Jun 3 17:13:17 CEST 2011
R. David Murray <rdmurray at bitdance.com> added the comment:
The documentation is, in principle, wrong. The actual authority for the "correct" implementation is PEP3101, which says the following:
The str.format() function will have
a minimalist parser which only attempts to figure out when it is
"done" with an identifier (by finding a '.' or a ']', or '}',
etc.).
Changing that specification would require a discussion on python-dev.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12014>
_______________________________________
More information about the Python-bugs-list
mailing list