diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-09-22 21:47:24 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-09-22 21:47:24 (GMT) |
commit | 3e124ae739db8dc6ad43687d6b14466a572a6f8e (patch) | |
tree | c3923f748294a32af0b47a455ff91391c3dffd54 /Misc | |
parent | 2df811362213d9e987193772d3bf835a204f2727 (diff) | |
download | cpython-3e124ae739db8dc6ad43687d6b14466a572a6f8e.zip cpython-3e124ae739db8dc6ad43687d6b14466a572a6f8e.tar.gz cpython-3e124ae739db8dc6ad43687d6b14466a572a6f8e.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -12,6 +12,8 @@ What's New in Python 3.2 Alpha 1? Core and Builtins ----------------- +- Issue #1766304: Improve performance of membership tests on range objects. + - Issue #6713: Improve performance of integer -> string conversions. - Issue #6846: Fix bug where bytearray.pop() returns negative integers. |