This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lepaperwan
Recipients benjamin.peterson, lepaperwan
Date 2018-09-17.19:42:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537213320.78.0.956365154283.issue34686@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-09-17 19:42:00lepaperwansetrecipients: + lepaperwan, benjamin.peterson
2018-09-17 19:42:00lepaperwansetmessageid: <1537213320.78.0.956365154283.issue34686@psf.upfronthosting.co.za>
2018-09-17 19:42:00lepaperwanlinkissue34686 messages
2018-09-17 19:42:00lepaperwancreate