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 zach.ware
Recipients anilbey, docs@python, ezio.melotti, mrabarnett, rhettinger, serhiy.storchaka, timehorse, tlynn, zach.ware
Date 2019-09-09.16:45:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568047535.04.0.533429638721.issue7940@roundup.psfhosted.org>
In-reply-to
Content
Ezio requested further opinions, so here's mine.  I don't think the current behavior makes sense; I doubt anyone actually expects a negative index to be squashed to 0, especially for endpos.  I'm not certain that allowing negative indexes is really necessary, but seems nicer than raising an exception which would be the other acceptable option to me.
History
Date User Action Args
2019-09-09 16:45:35zach.waresetrecipients: + zach.ware, rhettinger, tlynn, timehorse, ezio.melotti, mrabarnett, docs@python, serhiy.storchaka, anilbey
2019-09-09 16:45:35zach.waresetmessageid: <1568047535.04.0.533429638721.issue7940@roundup.psfhosted.org>
2019-09-09 16:45:35zach.warelinkissue7940 messages
2019-09-09 16:45:34zach.warecreate