New to Python - block grouping (spaces)
marko at pacujo.net
Sat Apr 18 09:42:07 CEST 2015
Rustom Mody <rustompmody at gmail.com>:
>> It would be possible to define a canonical AST storage format. Then,
>> your editor could "incarnate" the AST in the syntax of your choosing.
> Things like comments are a headache -- they have to be shoved into the
> AST rather artificially
I don't think comments would be so bad assuming you don't write comments
result = principal * (1 + interest_rate / 100)
# expressed as percentage ^^^^^^^^^^^^^
I know, I know -- that's a lot to assume.
More information about the Python-list