[Python-ideas] mixing tabs and spaces

Guido van Rossum guido at python.org
Sun Apr 7 19:43:13 CEST 2013


There is a simpler solution. Just don't use tabs.

On Sun, Apr 7, 2013 at 9:56 AM, Neal Becker <ndbecker2 at gmail.com> wrote:
> I was noticing the complaint about mixing tabs and spaces on python.general
> list.  It occurs to me, that a simple solution would be to allow a comment at
> the top of the file to specify a tab-space equivalency.
>
> something similar to the coding magic comment:
> # -*- coding: <encoding name> -*-
>
> Perhaps:
>
> # -*- tab: 8 -*-
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas



-- 
--Guido van Rossum (python.org/~guido)



More information about the Python-ideas mailing list