[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
messages: 310905
nosy: gvanrossum
priority: low
severity: normal
stage: needs patch
status: open
title: Return function locals() in order of creation?
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32690>
_______________________________________
More information about the New-bugs-announce
mailing list