[issue45704] string.Formatter.parse does not handle auto-numbered positional fields
Sascha Desch
report at bugs.python.org
Wed Nov 3 14:00:37 EDT 2021
Sascha Desch <sascha.desch at hotmail.com> added the comment:
Another thing that occurred to me is the question of what `.parse()` should do when a mix of auto-numbered and manually numbered fields is supplied e.g. `{}{1}`. As of now `.parse()` happily processes such inputs and some other piece of code deals with this and ultimately raises an exception that mixing manual with automatic numbering is not allowed. If `.parse()` supported automatic numbering it would have to be aware of this too I guess?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45704>
_______________________________________
More information about the Python-bugs-list
mailing list