![](https://secure.gravatar.com/avatar/72ee673975357d43d79069ac1cd6abda.jpg?s=120&d=mm&r=g)
13 Jul
2020
13 Jul
'20
8:03 a.m.
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