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 vstinner
Recipients benjamin.peterson, brett.cannon, serhiy.storchaka, vstinner
Date 2016-01-19.21:30:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453239008.58.0.741411026787.issue26146@psf.upfronthosting.co.za>
In-reply-to
Content
First I also wanted to add ast.Literal to literals: list, set, dict, etc. But it doesn't work, we loose the item order: set and dict are unordered. An optimizer must not change the order in which items are created. At least, not by default.

I'm talking about an hypothetical ast.Literal type which would take a Python object (list, set, etc.) Current ast.Set contains an ordered list of items, ast.Dict uses two ordered lists for keys and values.
History
Date User Action Args
2016-01-19 21:30:08vstinnersetrecipients: + vstinner, brett.cannon, benjamin.peterson, serhiy.storchaka
2016-01-19 21:30:08vstinnersetmessageid: <1453239008.58.0.741411026787.issue26146@psf.upfronthosting.co.za>
2016-01-19 21:30:08vstinnerlinkissue26146 messages
2016-01-19 21:30:08vstinnercreate