PEP8 and 4 spaces

Mark Lawrence breamoreboy at
Fri Jul 4 18:06:02 CEST 2014

On 04/07/2014 16:57, Emile van Sebille wrote:
> 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> 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

Surely the issue of mixing tabs and spaces is much more important than 
working systems? :)

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.

More information about the Python-list mailing list