Non-Indented python

Tom Loredo loredo at astro.cornell.edu
Tue Nov 27 13:34:05 EST 2001


Terry Reedy wrote:
> 
> "Marcin 'Qrczak' Kowalczyk" <qrczak at knm.org.pl> wrote in message
> news:slrna071tg.isc.qrczak at qrnik.zagroda...
> > Tue, 27 Nov 2001 01:27:15 +0000 (UTC), Huaiyu Zhu
> <huaiyu at laplace.almaden.ibm.com> pisze:
> >
> > > - That there is no reason to associate tab with any equivalent in
> spaces.
> > >   It should only be used as a distinct character in its own right.
> >
> > What should a Python interpreter do with this?
> >
> > <TAB>if 0:
> > <TAB><TAB>print "0"
> > <SPACE><SPACE><SPACE><SPACE><SPACE><SPACE><SPACE><SPACE>print "1"
> 
> Raise SyntaxError.

AMEN!!  PEP!!  Yes, it would break existing code, but that code
*should* be broken (in some sense it already is).

-Tom Loredo



More information about the Python-list mailing list