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/2004-April/044628.html below:

[Python-Dev] Re: PEP 289 - Generator Expressions

[Python-Dev] Re: PEP 289 - Generator Expressions - Let's MoveForward [Python-Dev] Re: PEP 289 - Generator Expressions - Let's MoveForwardTim Peters tim.one at comcast.net
Fri Apr 30 18:20:55 EDT 2004
>> Listcomps can be deprecated, although not all existing uses of listcomps
>> will translate directly into genexps.

[David Eppstein]
> Not all?  When would [listcomp] ever not be replaceable by list(gencomp)?

The point of Armin's original msg in this thread was that direct replacement
can have different semantics.  Applying a transformation (via list()) is a
different story, although I expect someone obsessed enough could concoct an
example that worked differently, because genexp guts truly live in a
different scope than listcomp guts (e.g., play games with locals()).



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