Raymond Hettinger added the comment:

> treat the hi in the precondition in the same way as the lo parameter

Originally, there was no special test for lo.  The test was added only because 
negative lo value failed in an unfortunate way (with an infinite loop).  No 
change to hi was made because (it succeeded in some cases and existing code 
might be relying on that or it failed in clear-cut way by raising an 
IndexError).

> That being said, from my point of view this ticket can be closed.

I concur.  When there isn't a clear case for change, it is usually better to 
favor stability over potential disruption.

----------
resolution:  -> rejected
status: open -> closed

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

Reply via email to