Author anilbey
Recipients anilbey, docs@python, ezio.melotti, mrabarnett, rhettinger, serhiy.storchaka, timehorse, tlynn
Date 2019-07-15.12:09:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563192543.37.0.603691997041.issue7940@roundup.psfhosted.org>
In-reply-to
Content
I guess the use of negative indices serve the same purpose here as in lists or strings. 
Though as Ezio pointed out, the current behaviour is already accepting negative indices but providing inconsistent results in comparison to various other Python modules that support negative indices.

In my opinion:
If the negative indices are to be used here (which is what the current implementation suggests), they should behave in the same way as the rest of the Python modules. 
Otherwise, perhaps negative indices should not be allowed here at all. 

What do you think?

P.S. this patch is already applied to the regex module by @mrabarnett
History
Date User Action Args
2019-07-15 12:09:03anilbeysetrecipients: + anilbey, rhettinger, tlynn, timehorse, ezio.melotti, mrabarnett, docs@python, serhiy.storchaka
2019-07-15 12:09:03anilbeysetmessageid: <1563192543.37.0.603691997041.issue7940@roundup.psfhosted.org>
2019-07-15 12:09:03anilbeylinkissue7940 messages
2019-07-15 12:09:03anilbeycreate