(Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

Chris Angelico rosuav at gmail.com
Tue Mar 3 01:56:42 EST 2015


On Tue, Mar 3, 2015 at 4:40 PM, Gregory Ewing
<greg.ewing at canterbury.ac.nz> wrote:
> Chris Angelico wrote:
>>
>> You want to
>> use "colour" instead of "color"? Also not a problem, and should be
>> easy enough for someone to understand who normally spells it the other
>> way.
>
>
> It's not a matter of failing to understand, it's about
> having more than one spelling of an identifier around
> imposing an extra cognitive burden.
>
> PEP 8 recommends against abbreviating identifiers because
> it's hard to remember which abbreviation is being used
> in any given context. Multiple alternative spellings
> have a similar effect.

Aye, but that's only an issue if you use more than one. You're most
welcome to use "colour" in a project, just be consistent.

ChrisA



More information about the Python-list mailing list