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/2003-October/039086.html below:

[Python-Dev] listcomps vs. for loops

[Python-Dev] listcomps vs. for loops [Python-Dev] listcomps vs. for loopsGuido van Rossum guido at python.org
Mon Oct 20 14:08:07 EDT 2003
> What I remember you saying was that it was an unfortunate but necessary
> consequence so that it would work the same as
> 
>     L = []
>     for x in R:
>         L.append(x)
>     print x
> 
> You didn't want to have different semantics for two such similar
> constructs ("there's only one way").  You also didn't want to push a
> stack frame for listcomps.

Then I guess I *have* changed my mind.  I guess I didn't think of the
renaming solution way back when.

--Guido van Rossum (home page: http://www.python.org/~guido/)

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