Non-indented python
Timothy Grant
tjg at craigelachie.org
Tue Nov 27 12:36:30 EST 2001
Tim Peters has been studiously avoiding this war. However, if you look
carefully at your Python installation you will in all likelihood find a
cool little (actually it's not so little) programme written by the
Tim-bot to do just this.
On Tue, 2001-11-27 at 07:23, Nicholas FitzRoy-Dale wrote:
> On 27 Nov, Terry Reedy wrote:
> > "Marcin 'Qrczak' Kowalczyk" <qrczak at knm.org.pl> wrote in message
> > news:slrna071tg.isc.qrczak at qrnik.zagroda...
>
> >> 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.
> >
> > Seriously.
> >
> > This would be consistent with general philosophy of not guessing in
> > the face of ambiguity.
>
> Insofar as my opinion makes any difference, I'd like to second that
> suggestion. The huge tab/space war above notwithstanding, I think that
> regardless of your preference, any file with mixed space/tab indenting
> is inherently evil and will only cause pain. I was aimlessly toying
with
> the idea of writing a little utility to detect mixed space/tab indents
> in files and setting it to run whenever I do a CVS checkout or update,
> but I always welcome the opportunity to banish devilry on a more
> far-reaching scale. :)
>
> --
> - Nicholas FitzRoy-Dale
> http://www.lardcave.net
>
> Feel my three-toed wrath!
> - Catie
--
Stand Fast,
tjg.
Timothy Grant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20011127/5caa1c6f/attachment.sig>
More information about the Python-list
mailing list