mirror of
https://github.com/python/cpython.git
synced 2026-05-07 13:10:37 -04:00
b7fbcd396f
where the right hand operand is a set of constants, by turning the set into a frozenset and pre-building it as a constant. The comparison operation is made against the constant instead of building a new set each time it is executed (a similar optimization already existed which turned a list of constants into a pre-built tuple). Patch and additional tests by Dave Malcolm.