Serhiy Storchaka added the comment:

Current code is valid, since neither PY_SSIZE_MAX nor PY_SSIZE_MIN equal to 0.

But testing on 0 can be simpler. Following patch simplifies the code.

----------
nosy: +mark.dickinson
stage:  -> patch review
type: behavior -> enhancement
versions:  -Python 2.7, Python 3.5
Added file: http://bugs.python.org/file43437/range_validate_step.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27333>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to