Antoine Pitrou <pit...@free.fr> added the comment: > As a more general policy question... where do we stand in regards to > backwards compatibility of the AST? The ast module docs don't have any > caveats to say that it may change between versions, but it obviously > *can* change due to new language constructs (if nothing else).
Yes, but can existing constructs produce a different structure from one Python version to another? It seems to me that the ast module is the recommended way to inspect the structure of Python code (much more so that bytecode or concrete syntax trees). Perhaps the optimizations can leave the initial ast intact? Perhaps with an additional API to get the optimized ast as well? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11549> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com