Bug #3118
Change code to implement faster dict lookup
Start date:
11/09/2012
Due date:
% Done:
0%
Estimated time:
First Occurred:
Occurs In:
Stakeholders:
Description
a = {'x': 1, 'y': 2}
a.has_key('x') # Not allowed in python 3
'x' in a # Recommended way to check if key exists -- O(1)
'x' in a.keys() # Works but much slower -- O(n)
/pre>
History
#1 Updated by Burt Holzman almost 8 years ago
- Priority changed from Normal to Low
- Target version changed from v2_7_x to v3_1
#2 Updated by Burt Holzman over 7 years ago
- Target version changed from v3_1 to v3_x