Wouldn't `local` make sense as the opposite of `global` - personally I would rather see that than LET.
-----Original Message----- From: Cameron Simpson <[email protected]> Sent: 30 November 2020 07:13 To: [email protected] Cc: [email protected] Subject: [Python-ideas] Re: Making the for statement work better with nested functions On 30Nov2020 04:00, [email protected] <[email protected]> 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 <[email protected]> _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/KIZGGXUYVFEBLN4JGXQHPKUBWOCNEZKD/ Code of Conduct: http://python.org/psf/codeofconduct/ _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/IDGOO3ALPG2DPYMR5VQEKB5AWDHTSJVX/ Code of Conduct: http://python.org/psf/codeofconduct/
