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 vstinner
Recipients rhettinger, serhiy.storchaka, skrah, socketpair, vstinner
Date 2016-10-11.14:39:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476196746.69.0.533494262954.issue28397@psf.upfronthosting.co.za>
In-reply-to
Content
Serhiy Storchaka: "I opened this issue because this optimization already was applied to deque (issue23553)"

Ah, change 1e89094998b2 written by Raymond Hettinger last year, Raymond who wrote (msg278397): "Don't change the code in the collections module.  While semantically valid, the change obfuscates the code." :-)

To stay consistent, I suggest to revert the useless micro-optimization 1e89094998b2. Python uses Py_ssize_t instead of size_t to support "i >= 0" checks", it's a deliberate choice to catch bugs.
History
Date User Action Args
2016-10-11 14:39:06vstinnersetrecipients: + vstinner, rhettinger, skrah, socketpair, serhiy.storchaka
2016-10-11 14:39:06vstinnersetmessageid: <1476196746.69.0.533494262954.issue28397@psf.upfronthosting.co.za>
2016-10-11 14:39:06vstinnerlinkissue28397 messages
2016-10-11 14:39:06vstinnercreate