On 13/07/20 7:12 am, Larry Hastings wrote:
I dimly recall a precedent where the presence of locals() in a function body affected code generation,
The presence of exec used to do that, which is why it was a statement rather than a function. But I don't think locals() ever did -- how would the compiler know that it was calling the builtin locals function and not something else? -- Greg _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/JCMENW5LTSWB62NPEDEYQK36J3ANJRGI/ Code of Conduct: http://python.org/psf/codeofconduct/