PEP8 and 4 spaces
wxjmfauth at gmail.com
wxjmfauth at gmail.com
Thu Jul 3 15:22:29 EDT 2014
Le jeudi 3 juillet 2014 20:07:28 UTC+2, Paul Sokolovsky a écrit :
> Hello,
>
>
>
> On Fri, 4 Jul 2014 03:38:27 +1000
>
> Chris Angelico <rosuav at gmail.com> wrote:
>
>
>
> > On Fri, Jul 4, 2014 at 3:31 AM, Tobiah <tshepard at rcsreg.com> wrote:
>
> > > Coworker takes PEP8 as gospel and uses 4 spaces
>
> > > to indent. I prefer tabs. Boss want's us to
>
> > > unify.
>
> >
>
> > 1) PEP 8 is meant to be guidelines, *not* a set of hard-and-fast
>
> > rules.
>
> > 2) Tabs let different people display the indents at different
>
> > widths.
>
>
>
> That's exactly the problem with tabs - whatever you think your code
>
> looks like with tabs, other people will see quite different picture.
>
>
>
> Also, most people are not interested in doing mumbo-jumbo with tabs
>
> settings, and have them set to standard 8-char tabs. So, any python
>
> code which uses only tabs for indentation automatically violates
>
> 4-space convention (and mixing tabs and spaces is nowadays prohibited
>
> in Python).
>
>
>
> Summing up: if you care about other human beings, use spaces. If you
>
> don't care about other human beings, you may use tabs, but other human
>
> beings surely will take how you treat them into account ;-).
>
>
>
>
>
> --
>
> Best regards,
>
> Paul mailto:pmiscml at gmail.com
"Tabulation", the key, the code point, the tab stop have been
created for humans beeings.
Today, at Unicode time, there are only naive ascii people,
who think a code point/space can be replaced by a set of
characters.
jmf
More information about the Python-list
mailing list