Alternate indent proposal for python 3000

Matthew Woodcraft mattheww at
Tue Apr 22 00:14:38 CEST 2008

Terry Reedy <tjreedy at> 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

(Also, '{' and '}' have rather useful meanings in Python already.)


More information about the Python-list mailing list