SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72140 0 27 Python

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.
R
Raymond Hettinger committed
a164574937d6ed32060ad34ea04913ca10741394
Parent: dbecd93