PEP8 and 4 spaces

Emile van Sebille emile at fenx.com
Fri Jul 4 11:57:09 EDT 2014


On 7/4/2014 7:57 AM, Mark Lawrence wrote:
> On 04/07/2014 15:28, Grant Edwards wrote:
>> On 2014-07-03, Emile van Sebille <emile at fenx.com> wrote:
<snip>
>>> Just watch out for mixed tabs and spaces in the same file -- a tab
>>> counts as eight spaces and can be used interchangeably in python2.
>>
>> 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.
>>
>
> Yet another reason to switch to Python 3.

For new projects, sure. But since the v1.5 days I've deployed the 
current python version a dozen times a year on various one-offs so that 
I'm sure I've got every python version deployed somewhere, and they just 
run, so why fix something that works. Or upgrade it when a three line 
fix addresses the issue.

Emile





More information about the Python-list mailing list