Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.04; 'english.': 0.04; 'method.': 0.07; "'no": 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'spelling': 0.09; 'python': 0.11; 'jan': 0.12; "'blue": 0.16; 'hits': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'sysv': 0.16; ':-)': 0.16; 'language': 0.16; 'wrote:': 0.18; 'skip:f 30': 0.19; 'not,': 0.20; 'subject:] ': 0.20; '>>>': 0.22; 'example': 0.22; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'file.': 0.24; 'software.': 0.24; "i've": 0.25; 'right.': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'character': 0.29; "doesn't": 0.30; "d'aprano": 0.31; 'steven': 0.31; 'except': 0.35; 'but': 0.35; 'there': 0.35; 'skip:f 40': 0.36; 'searching': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'support,': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'received:org': 0.40; 'subject: / ': 0.60; 'most': 0.60; 'simple': 0.61; "you're": 0.61; 'such': 0.63; 'programme': 0.65; 'american': 0.66; 'apart': 0.72; 'url:htm': 0.73; 'colour': 0.84; 'examples.': 0.84; 'horrible': 0.84; 'received:fios.verizon.net': 0.84; 'subject:color': 0.84; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: [OT] spelling colour / color was Re: Toggle Date: Thu, 09 Oct 2014 18:53:58 -0400 References: <5435e4e6$0$12982$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-108-16-203-145.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 49 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1412895254 news.xs4all.nl 2933 [2001:888:2000:d::a6]:36811 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78916 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