commit | de6d6979873b9e7d8066463dff8af4cc65e14e31 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Wed Aug 21 01:35:29 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Wed Aug 21 01:35:29 2002 +0000 |
tree | 1e2029f1de5a11b208b02f6ea0739ed9e7b7ccde | |
parent | ede3a0da8bb9eb8230b0e3232a1cdb076b6e32ac [diff] |
Optimize try/except ordering in sets.py. Gains a 5:1 speed-up for membership testing by handling the most common case first (the case where the element is hashable). Closes SF Patch 597444.