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-22.13:05:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Patch version 2:

- rework the whole patch
- add unit tests
- fix AST validation: the code was completly wrong in patch 1, I don't understand how it worked :-p Validate also correctly nested tuple and nested frozenset.
- add a comment to explain why obj2ast_constant() doesn't have to Py_INCREF() singletons
- handle also Ellipsis
- revert changes on set_context(). It seems like set_context() is only called with code emited directly by the compiler (not by compile(custom_ast_tree, ...)). If someone finds a way to call set_context() with an ast.Constant, we can support this case later.
Date User Action Args
2016-01-22 13:05:12vstinnersetrecipients: + vstinner, brett.cannon, benjamin.peterson, serhiy.storchaka
2016-01-22 13:05:11vstinnersetmessageid: <>
2016-01-22 13:05:11vstinnerlinkissue26146 messages
2016-01-22 13:05:11vstinnercreate