[issue44683] Can't subscript objects with the string "1" using str.format()
Eric V. Smith
report at bugs.python.org
Tue Jul 20 14:02:14 EDT 2021
Eric V. Smith <eric at trueblade.com> added the comment:
Yes, this is a "feature" of str.format. If it looks like a number, it's converted to a number, else it's used as a string. It's generally the most useful way to interpret subscripts, but as you note it doesn't handle all cases.
----------
nosy: +eric.smith
resolution: -> wont fix
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44683>
_______________________________________
More information about the Python-bugs-list
mailing list