diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-09-22 21:49:35 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-09-22 21:49:35 (GMT) |
commit | d940e3544059e98dea0df8b1181b3a04b6d4167f (patch) | |
tree | d7491a9913f85dfa5e9bf5b3e359f9e27c85de37 | |
parent | 60d6b35af96109af36a6f637d071c29a47b3213f (diff) | |
download | cpython-d940e3544059e98dea0df8b1181b3a04b6d4167f.zip cpython-d940e3544059e98dea0df8b1181b3a04b6d4167f.tar.gz cpython-d940e3544059e98dea0df8b1181b3a04b6d4167f.tar.bz2 |
Blocked revisions 75028 via svnmerge
........
r75028 | mark.dickinson | 2009-09-22 22:47:24 +0100 (Tue, 22 Sep 2009) | 4 lines
Issue #1766304: Optimize membership testing for ranges: 'n in range(...)'
does an O(1) check, if n is an integer. Non-integers aren't affected.
Thanks Robert Lehmann.
........
0 files changed, 0 insertions, 0 deletions