[issue44683] Can't subscript objects with the string "1" using str.format()

2021-08-04 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Interpreter Core -Unicode ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue44683] Can't subscript objects with the string "1" using str.format()

2021-08-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue44683] Can't subscript objects with the string "1" using str.format()

2021-07-20 Thread Eric V. Smith
Eric V. Smith 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 re

[issue44683] Can't subscript objects with the string "1" using str.format()

2021-07-20 Thread Dennis Sweeney
Change by Dennis Sweeney : -- title: String formatting -> Can't subscript objects with the string "1" using str.format() ___ Python tracker ___ ___