This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jhylton
Recipients amaury.forgeotdarc, benjamin.peterson, cmcqueen1975, gvanrossum, jhylton, pje, rhettinger, terry.reedy
Date 2010-02-22.22:18:06
SpamBayes Score 1.3331898e-05
Marked as misclassified No
Message-id <e8bf7a531002221418qf706501t3e100b69f53782f8@mail.gmail.com>
In-reply-to <1265940553.34.0.0766783336387.issue4617@psf.upfronthosting.co.za>
Content
It's an interesting bug.  Maybe the compiler shouldn't allow you to
use such a variable as a free variable in a nested function?

On Thu, Feb 11, 2010 at 9:09 PM, Craig McQueen <report@bugs.python.org> wrote:
>
> Craig McQueen <python@craig.mcqueen.id.au> added the comment:
>
> There's also this one which caught me out:
>
> def outer():
>  x = 0
>  y = (x for i in range(10))
>  del x  # SyntaxError
>
> ----------
> nosy: +cmcqueen1975
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue4617>
> _______________________________________
> _______________________________________________
> Python-bugs-list mailing list
> Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/jeremy%40alum.mit.edu
>
>
History
Date User Action Args
2010-02-22 22:18:07jhyltonsetrecipients: + jhylton, gvanrossum, rhettinger, terry.reedy, pje, amaury.forgeotdarc, benjamin.peterson, cmcqueen1975
2010-02-22 22:18:06jhyltonlinkissue4617 messages
2010-02-22 22:18:06jhyltoncreate