Message268677
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. |
|
Date |
User |
Action |
Args |
2016-06-16 16:36:25 | xiang.zhang | set | recipients:
+ xiang.zhang |
2016-06-16 16:36:25 | xiang.zhang | set | messageid: <1466094985.85.0.664632093379.issue27333@psf.upfronthosting.co.za> |
2016-06-16 16:36:25 | xiang.zhang | link | issue27333 messages |
2016-06-16 16:36:25 | xiang.zhang | create | |
|