PEP8 and 4 spaces

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Jul 4 11:00:18 EDT 2014


On 04/07/2014 15:54, Marko Rauhamaa wrote:
> Grant Edwards <invalid at invalid.invalid>:
>
>> Definitely. Indenting with tabs vs. spaces is mostly personal
>> preference (though spaces are better!). But, mixing the two is right
>> out, and should be stomped on hard.
>
> Often one person writes the code and another person fixes bugs in it or
> adds features to it. So if one uses tabs and the other refrains from
> using them, you'll get the mixed style you abhor.
>
> Even if we accepted that to be bad style, there's nothing on the screen
> that would warn against such usage: the lines seemingly align perfectly,
> and the code runs as expected.
>
> Marko
>

Only for the very old fashioned Python 2, the modern Python 3 has booted 
mixed tabs and spaces into touch.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com





More information about the Python-list mailing list