[New-bugs-announce] [issue32690] Return function locals() in order of creation?
Guido van Rossum
report at bugs.python.org
Sat Jan 27 22:16:31 EST 2018
New submission from Guido van Rossum <guido at python.org>:
Found in this thread: https://twitter.com/dabeaz/status/956264950430912512
Note that at the global level locals() indeed returns variables in order of definition. Ditto at class scope. Because those calls just return the actual dict. But in a function, a dict is constructed. I agree with Dave that it would be nice if the order there was reversed.
components: Interpreter Core
stage: needs patch
title: Return function locals() in order of creation?
versions: Python 3.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce