[Python-Dev] Don't set local variable in a list comprehension or generator (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu May 19 14:16:31 CEST 2011


Victor Stinner wrote:

I suppose that you have the current value of range(10000) on the stack: DUPTOP; BINARYMULTIPLY; gives you the square. You don't need the x variable (LOADFAST/STOREFAST).

That seems far too special-purpose to be worth it to me.

-- Greg



More information about the Python-Dev mailing list