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 christian.heimes
Recipients christian.heimes, python-dev, serhiy.storchaka
Date 2013-07-01.21:16:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372713402.65.0.380778858407.issue18339@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think that a reordered idx < 0 check is going to make any measurable difference. I like the separate checks as they make the code easier to understand. The first check tests for error in PyLong_AsSsize_t() and the second one checks for positive integers.
History
Date User Action Args
2013-07-01 21:16:42christian.heimessetrecipients: + christian.heimes, python-dev, serhiy.storchaka
2013-07-01 21:16:42christian.heimessetmessageid: <1372713402.65.0.380778858407.issue18339@psf.upfronthosting.co.za>
2013-07-01 21:16:42christian.heimeslinkissue18339 messages
2013-07-01 21:16:42christian.heimescreate