A modest indentation proposal

Hernan M. Foffani hfoffani at yahoo.com
Sun Dec 2 08:27:24 EST 2001


"Erann Gat" escribió:
> Olaf Delgado wrote:
>
> > Here's another suggestion: legalize a semicolon on a line by
> > itself. Thus the code above would look something like this:
> >
> > biff()        # Line 0
> > for x in l:   # Line 1
> >   foo()       # Line 2
> >   baz()       # Line 3
> >   ;
> > bar()         # Line 4
>
> This would be fine with me.  (Double-semicolon on a line is
> another possibility.)

You can write a "precompile" script that substitutes a lonely
semicolon with a "pass" statement. No need to change the
current python for this.

Or am I missing something here?

-Hernán.






More information about the Python-list mailing list