Message 99855 - Python tracker (original) (raw)

Message99855

Author jhylton
Recipients amaury.forgeotdarc, benjamin.peterson, cmcqueen1975, gvanrossum, jhylton, pje, rhettinger, terry.reedy
Date 2010-02-22.22๐Ÿ”ž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๐Ÿ”ž07 jhylton set recipients: + jhylton, gvanrossum, rhettinger, terry.reedy, pje, amaury.forgeotdarc, benjamin.peterson, cmcqueen1975
2010-02-22 22๐Ÿ”ž06 jhylton link issue4617 messages
2010-02-22 22๐Ÿ”ž06 jhylton create