A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-October/039171.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
Tue Oct 21 15:37:42 EDT 2003
> > It's only list comprehensions where I plan to remove x from the scope
> > after the comprehension is finished.
> > 
> > Do you need a warning for that change too?  Code that relies on it is
> > pretty sick IMO.
> 
> Yes, it's sick, but since you made clear previously that listcomps
> semantics equivalent to the corresponding for loop, I wouldn't be
> surprised to discover that someone converted a for loop to a listcomp
> without fixing that sickness.  So yes, it needs a warning.

OK, fair enough.  Someone update the doc bug report for this.
Initially, we're just going to document it as deprecated behavior (or
maybe "despised" behavior :-).

--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