On 1/12/22 9:27 am, Anony Mous wrote:
The idea is that YOU write "local:", and the interpreter, without you ever seeing it, promotes that into a hidden function with a hidden name and a hidden call.

But if that's *all* it does, then this wouldn't happen:

I would expect them to return to, or yield to, the next outer "def" function, assuming they were in a "local:" inside another function.

--
Greg

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@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/MXTV25UBEY2CJ6MQRNWHNRZ6GSKYKMAR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to