[OT] spelling colour / color was Re: Toggle

Terry Reedy tjreedy at udel.edu
Fri Oct 10 00:53:58 CEST 2014


On 10/9/2014 1:43 PM, mm0fmf wrote:
> On 09/10/2014 02:29, Steven D'Aprano wrote:
>> Apart from the horrible spelling of colour :-)
>
> I've always spelt colour as "color" when programming and as "colour"
> when writing language including documentation about software.

Like it or not, Python uses American English.

Searching 'colour' in F:\Python\dev\4\py34\Doc\*.rst ...
F:\Python\dev\4\py34\Doc\faq\library.rst: 102: functions from ncurses 
and SYSV curses such as colour, alternative character set
F:\Python\dev\4\py34\Doc\howto\curses.rst: 382: instead of the 
Canadian/British spelling 'colour'.  If you're used to the
F:\Python\dev\4\py34\Doc\howto\regex.rst: 1114: Here's a simple example 
of using the :meth:`sub` method.  It replaces colour
F:\Python\dev\4\py34\Doc\howto\regex.rst: 1115: names with the word 
``colour``::
F:\Python\dev\4\py34\Doc\howto\regex.rst: 1118:    >>> p.sub( 'colour', 
'blue socks and red shoes')
F:\Python\dev\4\py34\Doc\howto\regex.rst: 1119:    'colour socks and 
colour shoes'
F:\Python\dev\4\py34\Doc\howto\regex.rst: 1120:    >>> p.sub( 'colour', 
'blue socks and red shoes', count=1)
F:\Python\dev\4\py34\Doc\howto\regex.rst: 1121:    'colour socks and red 
shoes'
F:\Python\dev\4\py34\Doc\howto\regex.rst: 1127:    >>> p.subn( 'colour', 
'blue socks and red shoes')
F:\Python\dev\4\py34\Doc\howto\regex.rst: 1128:    ('colour socks and 
colour shoes', 2)
F:\Python\dev\4\py34\Doc\howto\regex.rst: 1129:    >>> p.subn( 'colour', 
'no colours at all')
F:\Python\dev\4\py34\Doc\howto\regex.rst: 1130:    ('no colours at all', 0)
F:\Python\dev\4\py34\Doc\library\colorsys.rst: 24: 
http://www.cambridgeincolour.com/tutorials/color-spaces.htm.
F:\Python\dev\4\py34\Doc\whatsnew\2.0.rst: 1059: and SYSV curses, such 
as colour, alternative character set support, pads, and
Hits found: 14
most regex examples.

> colour in a programme doesn't seem right.

Perhaps ironically, there are 52 uses of 'colour' in the stdlib, all but 
4 in idlelib, and most of those in one file.  I just changed all except 
in the one file.

-- 
Terry Jan Reedy




More information about the Python-list mailing list