
Wouldn't `local` make sense as the opposite of `global` - personally I would rather see that than LET. -----Original Message----- From: Cameron Simpson <cs@cskk.id.au> Sent: 30 November 2020 07:13 To: sairamkumar2022@gmail.com Cc: python-ideas@python.org Subject: [Python-ideas] Re: Making the for statement work better with nested functions On 30Nov2020 04:00, sairamkumar2022@gmail.com <sairamkumar2022@gmail.com> wrote:
This is quite good but remove the new keyword, it's not necessary there.
The idea is to introduce names which are not previously present, and _expire_ and the end of the enclosed suite. Without the "new" is valid Python right now and does not mean that. So some indication of the special meaning would be required. Cheers, Cameron Simpson <cs@cskk.id.au> _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/KIZGGX... Code of Conduct: http://python.org/psf/codeofconduct/