[issue5237] Allow auto-numbered replacement fields in str.format() strings
Eric Smith
report at bugs.python.org
Sat Mar 14 23:05:24 CET 2009
Eric Smith <eric at trueblade.com> added the comment:
I implemented this one:
field_name ::= (identifier | integer | ) ("." attribute_name |
"[" element_index "]")*
Which I would have written as:
field_name ::= (identifier | integer)? ("." attribute_name |
"[" element_index "]")*
Not that it matters, of course.
And the proviso is correct: blanks and integers cannot be mixed in the
same string.
Thanks for looking at this!
----------
stage: -> committed/rejected
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5237>
_______________________________________
More information about the Python-bugs-list
mailing list