PEP8 and 4 spaces

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Jul 4 10:57:15 EDT 2014


On 04/07/2014 15:28, Grant Edwards wrote:
> On 2014-07-03, Emile van Sebille <emile at fenx.com> wrote:
>> On 7/3/2014 2:23 PM, Tobiah wrote:
>>> I think your suggestion of having GIT handle the transformations
>>> is the way we'll go.  nothing to quibble or worry about.  Well put
>>> spaces in the repository since it still seems to be the community's
>>> preference and I'll convert to tabs with GIT on the fly.  Problem
>>> solved.
>>
>> 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.

-- 
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