Message325570
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. |
|
Date |
User |
Action |
Args |
2018-09-17 19:42:00 | lepaperwan | set | recipients:
+ lepaperwan, benjamin.peterson |
2018-09-17 19:42:00 | lepaperwan | set | messageid: <1537213320.78.0.956365154283.issue34686@psf.upfronthosting.co.za> |
2018-09-17 19:42:00 | lepaperwan | link | issue34686 messages |
2018-09-17 19:42:00 | lepaperwan | create | |
|