New submission from Guido van Rossum <gu...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32690> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com