A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-May/111511.html below:

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

[Python-Dev] Don't set local variable in a list comprehension or generator [Python-Dev] Don't set local variable in a list comprehension or generatorGreg 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:
> DUP_TOP; BINARY_MULTIPLY; gives you the square. You don't need the x
> variable (LOAD_FAST/STORE_FAST).

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

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4