Author eric.smith
Recipients Todd.Rovito, docs@python, eric.araujo, eric.smith, flox, gosella, kisielk, marco.buttu, mark.dickinson, mrabarnett, rhettinger, terry.reedy
Date 2019-04-26.06:56:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556261763.98.0.992167652143.issue7951@roundup.psfhosted.org>
In-reply-to
Content
I'm not sure where (or if) it's defined in the Python docs, but in PEP 3101 it's in https://www.python.org/dev/peps/pep-3101/#simple-and-compound-field-names: "It should be noted that the use of 'getitem' within a format string is much more limited than its conventional usage. In the above example, the string 'name' really is the literal string 'name', not a variable named 'name'. The rules for parsing an item key are very simple. If it starts with a digit, then it is treated as a number, otherwise it is used as a string.".
History
Date User Action Args
2019-04-26 06:56:04eric.smithsetrecipients: + eric.smith, rhettinger, terry.reedy, mark.dickinson, kisielk, eric.araujo, mrabarnett, flox, docs@python, gosella, Todd.Rovito, marco.buttu
2019-04-26 06:56:03eric.smithsetmessageid: <1556261763.98.0.992167652143.issue7951@roundup.psfhosted.org>
2019-04-26 06:56:03eric.smithlinkissue7951 messages
2019-04-26 06:56:03eric.smithcreate