PEP8 and 4 spaces
torriem at gmail.com
Sun Jul 6 00:03:16 CEST 2014
On 07/04/2014 08:54 AM, 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.
Or more likely the lines seemingly align perfectly and the code does not
compile and run, or worse it does run but does not do the right thing.
More information about the Python-list