[Python-ideas] mixing tabs and spaces

Ned Batchelder ned at nedbatchelder.com
Mon Apr 8 02:49:52 CEST 2013


On 4/7/2013 8:02 PM, 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.
>
> I guess that ship sailed with Python 3.0, though.

Luckily, before the ship sailed, they loaded a new feature onto it: 
mixed whitespace is always an error in Python 3, as if it were run with -tt.

--Ned.

> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>




More information about the Python-ideas mailing list