Nested generator caveat

Raymond Hettinger python at rcn.com
Fri Jul 4 00:40:27 EDT 2008


On Jul 3, 9:20 pm, "Dieter Maurer" <die... at handshake.de> wrote:
> The apparent reason is that the free variables in
> nested generator definitions are not bound (to a value) at invocation
> time but only at access time.

<Yawn> That's what it is supposed to do.  Welcome to a dynamic
language.


Raymond



More information about the Python-list mailing list