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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/JCMENW5LTSWB62NPEDEYQK36J3ANJRGI/ Code of Conduct: http://python.org/psf/codeofconduct/
