This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Ilya Kamenshchikov, Todd.Rovito, docs@python, eric.araujo, eric.smith, flox, gosella, iritkatriel, kisielk, marco.buttu, mark.dickinson, mrabarnett, rhettinger, terry.reedy
Date 2021-11-29.22:01:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I recommend not adding support for negative indexing to format() for accessing positional arguments.  There is almost no reason to do this because it almost always makes the format string less readable, because the number of arguments is always known in advance, and because the arguments are almost always used entirely rather than selectively.

Negative index support isn't a feature of the language.  Instead, it is a feature provided on a class by class basis, if it makes sense for that class and for its use cases.

We are not obliged to provide negative index support in places where it doesn't make sense or where it makes code less readable.  For example, the islice() function doesn't support negative indices because it doesn't make sense there.  Likewise, the Sequence ABC doesn't require negative index support or slice support.
Date User Action Args
2021-11-29 22:01:36rhettingersetrecipients: + rhettinger, terry.reedy, mark.dickinson, eric.smith, kisielk, eric.araujo, mrabarnett, flox, docs@python, gosella, Todd.Rovito, marco.buttu, Ilya Kamenshchikov, iritkatriel
2021-11-29 22:01:36rhettingersetmessageid: <>
2021-11-29 22:01:36rhettingerlinkissue7951 messages
2021-11-29 22:01:36rhettingercreate