diff options
author | Raymond Hettinger <python@rcn.com> | 2005-02-06 22:05:42 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-02-06 22:05:42 (GMT) |
commit | a164574937d6ed32060ad34ea04913ca10741394 (patch) | |
tree | d9afe6c3cad9bd6b961435d6ea1e1572f8001b8c /Lib/copy.py | |
parent | dbecd93b7203cd187c1978de1207c29d3a9a686c (diff) | |
download | cpython-a164574937d6ed32060ad34ea04913ca10741394.zip cpython-a164574937d6ed32060ad34ea04913ca10741394.tar.gz cpython-a164574937d6ed32060ad34ea04913ca10741394.tar.bz2 |
Transform "x in (1,2,3)" to "x in frozenset([1,2,3])".
Inspired by Skip's idea to recognize the throw-away nature of sequences
in this context and to transform their type to one with better performance.
Diffstat (limited to 'Lib/copy.py')
0 files changed, 0 insertions, 0 deletions