Nested generator caveat

Raymond Hettinger python at
Fri Jul 4 06:40:27 CEST 2008

On Jul 3, 9:20 pm, "Dieter Maurer" <die... at> 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


More information about the Python-list mailing list