Alternate indent proposal for python 3000
Matthew Woodcraft
mattheww at chiark.greenend.org.uk
Mon Apr 21 18:14:38 EDT 2008
Terry Reedy <tjreedy at udel.edu> wrote:
> Off the top of my head: copy C and use {} to demarcate blocks and ';' to
> end statements, so that '\n' is not needed and is just whitespace when
> present. So, repeatedly scan for the next one of '{};'.
That would break if those characters appear in string literals or
comments. That's why it's nicer if you can do the transformation after
tokenising.
(Also, '{' and '}' have rather useful meanings in Python already.)
-M-
More information about the Python-list
mailing list