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 xiang.zhang
Recipients xiang.zhang
Date 2016-06-16.16:36:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466094985.85.0.664632093379.issue27333@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a drawback in validate_step of rangeobject. PyNumber_AsSsize_t returns clipped value and won't set an exception when the argument *exc* is set NULL. So if step overflows, istep is always PY_SSIZE_MAX or PY_SSIZE_MIN. But the following code is to check if istep is -1 and there is an exception. The code actually conflicts. But fortunately the result is always right. I suggest to make the code logic right.
History
Date User Action Args
2016-06-16 16:36:25xiang.zhangsetrecipients: + xiang.zhang
2016-06-16 16:36:25xiang.zhangsetmessageid: <1466094985.85.0.664632093379.issue27333@psf.upfronthosting.co.za>
2016-06-16 16:36:25xiang.zhanglinkissue27333 messages
2016-06-16 16:36:25xiang.zhangcreate