summaryrefslogtreecommitdiffstats
path: root/Lib/copy.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-02-06 22:05:42 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-02-06 22:05:42 (GMT)
commita164574937d6ed32060ad34ea04913ca10741394 (patch)
treed9afe6c3cad9bd6b961435d6ea1e1572f8001b8c /Lib/copy.py
parentdbecd93b7203cd187c1978de1207c29d3a9a686c (diff)
downloadcpython-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