[issue2690] Precompute range length and enhance range subscript support

Nick Coghlan report at bugs.python.org
Sat Dec 11 02:19:22 CET 2010


Nick Coghlan <ncoghlan at gmail.com> added the comment:

The other major change for ranges is that "in" and "not in" are no longer inefficient for actual instances of int (it does an arithmetic calculation instead of a linear search).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2690>
_______________________________________


More information about the Python-bugs-list mailing list