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-January/042263.html below:

[Python-Dev] namespace for generator expressions

[Python-Dev] namespace for generator expressionsDelaney, Timothy C (Timothy) tdelaney at avaya.com
Mon Jan 26 17:02:17 EST 2004
> From: Guido van Rossum
> 
> > I'm happy to see progress on the generator expressions 
> implementation,
> > but I think the specification of namespaces, which is just a sketch,
> > might be simplified.
> 
> Ouch!  Where were you when this PEP was discussed on python-dev?  I
> was originally strongly in your camp, but Tim and several others
> convinced me that in every single case where a generator expression
> has a free variable, you want early binding, not late.

I think I agree with Jeremy. I was originally in the early-binding camp, but I think we're better off trusting the programmer.

How often is a generator expression not going to be evaluated almost immediately? I guess, when they're passed to a function. But even in that case, how often are the bindings going to change? Except in pathological cases, they won't.

Anyway, got a meeting to go to :(

Tim Delaney

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