On Thu, Mar 1, 2018 at 7:28 AM, Paul Moore <p.f.mo...@gmail.com> wrote: > I've no idea how that would work under statement-local names either, though. > > boom = lambda: boom() > boom() > > is just an infinite recursion. I'm less sure that the as version is. > Or the alternative form > > ((lambda: boom()) as boom)() > > I know you can tell me what the implementation does - but I can't > reason it out from the spec.
The only part that isn't yet properly specified is how this interacts with closures, and that's because I really don't know what makes sense. Honestly, *any* situation where you're closing over a SLNB is going to have readability penalties, no matter what the spec says. ChrisA _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/