Martin v. Löwis wrote:
>> I'd say that this explains why it would still make sense to let the code
>> generator change
>> "x in (a, b, c)" to "x == a or x == b or x == c", as long as a, b, and c are
>> all integers.
>
> How often does that happen in real code?
don't know, but it happens:
[EMAI
At 05:52 PM 2/18/05 +0100, Fredrik Lundh wrote:
Phillip J. Eby wrote:
> Were these timings done with the code that turns (1,2,3) into a constant?
I used a stock 2.4 from python.org, which seems to do this (for tuples,
not for lists).
> Also, I presume that these timings still include extra LOAD_FAS
Phillip J. Eby wrote:
> Were these timings done with the code that turns (1,2,3) into a constant?
I used a stock 2.4 from python.org, which seems to do this (for tuples,
not for lists).
> Also, I presume that these timings still include extra LOAD_FAST operations
> that could be replaced
> wit