[issue34686] Add `-r`, as opposed to `-R` to Python core interpreter
Erwan Le Pape
report at bugs.python.org
Mon Sep 17 15:42:00 EDT 2018
Erwan Le Pape <lepaperwan3 at gmail.com> added the comment:
Given that marshal basically only just dumps code objects, the only viable solution I can see is adding a flag that can be passed all the way to the AST from `Python/bltinmodule.c:builtin_compile_impl` that would sort elements when creating code objects of unordered types.
This could be automatically enabled when compiling a file if we assume imported files are trustworthy or add a flag to the `Lib/compileall.py` module.
I only fear that this might break compiled code objects that make use of unordered types. Since I haven't sifted through the AST internals and the implications of such a change yet, so this is largely up for debate.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34686>
_______________________________________
More information about the Python-bugs-list
mailing list