On Saturday, April 18, 2015 at 12:30:49 PM UTC+5:30, Marko Rauhamaa wrote: > Ben Finney : > > > If you only write programs that will only ever be read by you and > > no-one else, feel free to maintain a fork of Python (or any other > > language) that suits your personal preferences. > > It would be possible to define a canonical AST storage format. Then, > your editor could "incarnate" the AST in the syntax of your choosing. > > A Python source file is an AST storage format, only it's not canonical. > IOW, more than one Python source file can produce identical AST's. That > isn't a problem for the specialized editors but it can be a problem for > text editors, source code control etc.
Things like comments are a headache -- they have to be shoved into the AST rather artificially -- https://mail.python.org/mailman/listinfo/python-list