[Python-ideas] mixing tabs and spaces

Tom Schumm phong at phong.org
Mon Apr 8 02:07:52 CEST 2013


On Monday, April 08, 2013 09:02:11 AM Stephen J. Turnbull wrote:
> Guido van Rossum writes:
>  > There is a simpler solution. Just don't use tabs.
> 
> Is there a reason tabs used for "syntactically significant"
> indentation can't be made a warning, or even a syntax error?  As far
> as I can see they're just an attractive nuisance.

Invoke python with the -t or -tt switch. I use "#!/usr/bin/python -tt" out of 
habit.

-- 
Tom Schumm
http://www.fwiffo.com/




More information about the Python-ideas mailing list