> Add py.test as an application that uses the AST to support Jython, > PyPy and CPython in a portable way. I always assumed AST was created > *because* bytecode was too CPython specific (but then I've never > implemented a language).
Historically, that's incorrect. The AST structure was introduced to simplify the implementation of (C)Python. Exposing it to Python modules was done primarily because it's neat and was easy to do - not because any specific use was expected, and certainly not as the primary motivation for having an AST. It was clear (to me, at least) back then that the AST will change over time (hence the module was originally called _ast). Regards, Martin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com