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 Phaqui
Recipients Phaqui, niki.spahiev, rhettinger, serhiy.storchaka, vstinner
Date 2017-11-14.00:00:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Writing my tests, I originally looked at Lib/test/ One test case uses indexes that are (+-)4*sys.maxsize. This does not fit in Py_ssize_t, and so these tests cause my array implementation to raise an overflow exception.

A solution is of course to have the function take general objects instead, and then truncate them down to a number that can fit in Py_ssize_t if it's too negative or positive).

But I concur. It seems more reasonable to stay consistent with the rest of the module, too.

I'll look over the test code to make sure I test for every given scenario (or as many as I can think of), and prepare a PR for this, then :)
Date User Action Args
2017-11-14 00:00:39Phaquisetrecipients: + Phaqui, rhettinger, vstinner, serhiy.storchaka, niki.spahiev
2017-11-14 00:00:39Phaquisetmessageid: <>
2017-11-14 00:00:39Phaquilinkissue31956 messages
2017-11-14 00:00:39Phaquicreate