Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78863 > unrolled thread
| Started by | Seymore4Head <Seymore4Head@Hotmail.invalid> |
|---|---|
| First post | 2014-10-08 20:11 -0400 |
| Last post | 2014-10-10 13:44 +0200 |
| Articles | 20 on this page of 59 — 27 participants |
Back to article view | Back to comp.lang.python
Toggle Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-08 20:11 -0400
Re: Toggle Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-09 12:29 +1100
[OT] spelling colour / color was Re: Toggle mm0fmf <none@mailinator.com> - 2014-10-09 18:43 +0100
Re: [OT] spelling colour / color was Re: Toggle duncan smith <buzzard@invalid.invalid> - 2014-10-09 19:24 +0100
Re: [OT] spelling colour / color was Re: Toggle Tim Delaney <timothy.c.delaney@gmail.com> - 2014-10-10 06:53 +1100
Re: [OT] spelling colour / color was Re: Toggle Marko Rauhamaa <marko@pacujo.net> - 2014-10-09 23:48 +0300
Re: [OT] spelling colour / color was Re: Toggle alister <alister.nospam.ware@ntlworld.com> - 2014-10-10 17:31 +0000
Re: [OT] spelling colour / color was Re: Toggle Marko Rauhamaa <marko@pacujo.net> - 2014-10-10 22:01 +0300
Re: [OT] spelling colour / color was Re: Toggle alister <alister.nospam.ware@ntlworld.com> - 2014-10-10 20:05 +0000
Re: [OT] spelling colour / color was Re: Toggle Christian Gollwitzer <auriocus@gmx.de> - 2014-10-11 11:37 +0200
Re: [OT] spelling colour / color was Re: Toggle mm0fmf <none@mailinator.com> - 2014-10-11 12:45 +0100
Re: [OT] spelling colour / color was Re: Toggle duncan smith <buzzard@invalid.invalid> - 2014-10-11 16:26 +0100
Re: [OT] spelling colour / color was Re: Toggle Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-10-11 15:20 -0400
Re: [OT] spelling colour / color was Re: Toggle William Ray Wing <wrw@mac.com> - 2014-10-11 15:55 -0400
Re: [OT] spelling colour / color was Re: Toggle duncan smith <buzzard@invalid.invalid> - 2014-10-12 00:40 +0100
Re: [OT] spelling colour / color was Re: Toggle giacomo boffi <pecore@pascolo.net> - 2014-10-18 09:06 +0200
Re: [OT] spelling colour / color was Re: Toggle Simon Ward <simon+python@bleah.co.uk> - 2014-10-11 15:45 +0100
Re: [OT] spelling colour / color was Re: Toggle "Neil D. Cerutti" <neilc@norwich.edu> - 2014-10-10 10:46 -0400
Re: [OT] spelling colour / color was Re: Toggle Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-10 18:45 +0100
Re: [OT] spelling colour / color was Re: Toggle Terry Reedy <tjreedy@udel.edu> - 2014-10-09 18:53 -0400
Re: [OT] spelling colour / color was Re: Toggle Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-10 18:11 +1100
Re: [OT] spelling colour / color was Re: Toggle Marko Rauhamaa <marko@pacujo.net> - 2014-10-10 13:08 +0300
Re: [OT] spelling colour / color was Re: Toggle Chris Angelico <rosuav@gmail.com> - 2014-10-10 21:40 +1100
Re: [OT] spelling colour / color was Re: Toggle Marko Rauhamaa <marko@pacujo.net> - 2014-10-10 13:51 +0300
Re: [OT] spelling colour / color was Re: Toggle Chris Angelico <rosuav@gmail.com> - 2014-10-10 22:50 +1100
Re: [OT] spelling colour / color was Re: Toggle Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-10-10 20:19 -0400
Re: [OT] spelling colour / color was Re: Toggle Marko Rauhamaa <marko@pacujo.net> - 2014-10-11 13:33 +0300
Re: [OT] spelling colour / color was Re: Toggle Chris Angelico <rosuav@gmail.com> - 2014-10-11 22:03 +1100
Re: [OT] spelling colour / color was Re: Toggle Chris Angelico <rosuav@gmail.com> - 2014-10-10 10:21 +1100
Re: [OT] spelling colour / color was Re: Toggle Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-10 17:52 +1100
Re: [OT] spelling colour / color was Re: Toggle Chris Angelico <rosuav@gmail.com> - 2014-10-10 18:04 +1100
Re: [OT] spelling colour / color was Re: Toggle Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-10 18:38 +0100
Re: Toggle Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-09 02:25 +0100
Re:Toggle Dave Angel <davea@davea.name> - 2014-10-08 21:24 -0400
Re: Toggle Ben Finney <ben+python@benfinney.id.au> - 2014-10-09 12:42 +1100
Re: Toggle Rustom Mody <rustompmody@gmail.com> - 2014-10-08 19:34 -0700
Re: Toggle Steven D'Aprano <steve@pearwood.info> - 2014-10-09 04:56 +0000
Re: Toggle Rustom Mody <rustompmody@gmail.com> - 2014-10-08 22:39 -0700
Re: Toggle Chris Angelico <rosuav@gmail.com> - 2014-10-09 16:55 +1100
Re: Toggle Peter Otten <__peter__@web.de> - 2014-10-09 09:51 +0200
Re: Toggle Rustom Mody <rustompmody@gmail.com> - 2014-10-09 05:42 -0700
Re: Toggle Terry Reedy <tjreedy@udel.edu> - 2014-10-09 16:57 -0400
Re: Toggle Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-10 18:18 +1100
Re: Toggle Rustom Mody <rustompmody@gmail.com> - 2014-10-10 07:24 -0700
Re: Toggle Rustom Mody <rustompmody@gmail.com> - 2014-10-10 07:28 -0700
Re: Toggle Chris Angelico <rosuav@gmail.com> - 2014-10-11 01:36 +1100
Re: Toggle Ian Kelly <ian.g.kelly@gmail.com> - 2014-10-09 10:07 -0600
Re: Toggle Rustom Mody <rustompmody@gmail.com> - 2014-10-09 09:33 -0700
Re: Toggle Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-10 18:15 +1100
Re: Toggle Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-09 04:02 +0100
Re: Toggle random832@fastmail.us - 2014-10-08 23:54 -0400
Re: Toggle Chris Angelico <rosuav@gmail.com> - 2014-10-09 14:57 +1100
Re: Toggle Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-10-09 17:57 +1300
Re: Toggle Travis Griggs <travisgriggs@gmail.com> - 2014-10-08 22:38 -0700
Re: Toggle alister <alister.nospam.ware@ntlworld.com> - 2014-10-09 15:23 +0000
Re: Toggle Tony the Tiger <tony@tiger.invalid> - 2014-10-12 18:38 +0000
Re: Toggle Chris Angelico <rosuav@gmail.com> - 2014-10-13 05:43 +1100
Re: Toggle alister <alister.nospam.ware@ntlworld.com> - 2014-10-13 08:09 +0000
Re: Toggle Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2014-10-10 13:44 +0200
Page 1 of 3 [1] 2 3 Next page →
| From | Seymore4Head <Seymore4Head@Hotmail.invalid> |
|---|---|
| Date | 2014-10-08 20:11 -0400 |
| Subject | Toggle |
| Message-ID | <u5kb3alsoleq8lh3eos289h5593m8033og@4ax.com> |
I want to toggle between color="Red" and color="Blue"
Here is one:
if color == "Red":
color = "Blue"
else:
color = "Red"
Here is two:
if x = "True" color = "Red"
else:
color="Blue"
x= not x
Others?
[toc] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2014-10-09 12:29 +1100 |
| Message-ID | <5435e4e6$0$12982$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #78863 |
Seymore4Head wrote:
> I want to toggle between color="Red" and color="Blue"
> Here is one:
> if color == "Red":
> color = "Blue"
> else:
> color = "Red"
Apart from the horrible spelling of colour :-) that seems fine to me. You
might wish to include a comment:
# Assumes that color can only take the values "Red" or "Blue".
just before the toggle code. But even better than a comment is an assertion:
assert color in ("Red", "Blue")
if color == "Red":
color = "Blue"
else:
color = "Red"
This makes it a "checked comment" -- the primary purpose of the assert here
is as a comment, but the interpreter will by default actually check that it
is true (although that can be turned off by the user).
You can find out more about good, and bad, uses of assert here:
http://import-that.dreamwidth.org/676.html
> Here is two:
> if x = "True" color = "Red"
> else:
> color="Blue"
> x= not x
That gives SyntaxError. And it's wrong because you are confusing the
*string* "T r u e" with the constant True. It should be:
assert isinstance(x, bool)
if x: # don't write "if x == True" since that is redundant
color = 'Red'
else:
color = 'Blue'
x = not x
> Others?
color = ("Red", "Blue")[color == "Red"]
color = {"Red": "Blue", "Blue": "Red"}[color]
color = "Red" if color == "Blue" else "Blue"
There may be even more complicated, obscure or obfuscated versions possible.
--
Steven
[toc] | [prev] | [next] | [standalone]
| From | mm0fmf <none@mailinator.com> |
|---|---|
| Date | 2014-10-09 18:43 +0100 |
| Subject | [OT] spelling colour / color was Re: Toggle |
| Message-ID | <TOzZv.532349$Jh7.32238@fx27.am4> |
| In reply to | #78864 |
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. colour in a programme doesn't seem right.
[toc] | [prev] | [next] | [standalone]
| From | duncan smith <buzzard@invalid.invalid> |
|---|---|
| Date | 2014-10-09 19:24 +0100 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <5436d2f0$0$48145$862e30e2@ngroups.net> |
| In reply to | #78905 |
On 09/10/14 18:43, 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. > > colour in a programme doesn't seem right. > Even in British English that is usually spelt 'program' (from the US spelling, of course). Let's not cave in on 'colour' too. It's bad enough that we can't use 'whilst' loops :-). Duncan
[toc] | [prev] | [next] | [standalone]
| From | Tim Delaney <timothy.c.delaney@gmail.com> |
|---|---|
| Date | 2014-10-10 06:53 +1100 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <mailman.14725.1412884430.18130.python-list@python.org> |
| In reply to | #78906 |
[Multipart message — attachments visible in raw view] — view raw
On 10 October 2014 05:24, duncan smith <buzzard@invalid.invalid> wrote: > On 09/10/14 18:43, 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. > > > > colour in a programme doesn't seem right. > > > > Even in British English that is usually spelt 'program' (from the US > spelling, of course). Let's not cave in on 'colour' too. It's bad enough > that we can't use 'whilst' loops :-). > That would be a theatre programme vs a computer program. I try to stick with the current spelling style when modifying existing code - esp. for APIs. It's very annoying to have some methods use "z" and others "s" in the same package. So since I'm currently working for a US company I have to consciously remind myself to use their abominations ;) Tim Delaney
[toc] | [prev] | [next] | [standalone]
| From | Marko Rauhamaa <marko@pacujo.net> |
|---|---|
| Date | 2014-10-09 23:48 +0300 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <877g099dgb.fsf@elektro.pacujo.net> |
| In reply to | #78909 |
Tim Delaney <timothy.c.delaney@gmail.com>: > It's very annoying to have some methods use "z" and others "s" in the > same package. "-ize" is standard everywhere in the English-speaking world. Americans insist on "analyze," "paralyze" and "catalyze" but paradoxically also on "lyse". > So since I'm currently working for a US company I have to consciously > remind myself to use their abominations ;) I will use American English instead of my native Finnish in my code so why wouldn't you use American English instead of your native variant of English? It'll also make you get a remote sense of the pain the French are feeling. If it's any consolation, even the Atlanta-based CNN makes their anchors speak standard Hollywoodese. Marko
[toc] | [prev] | [next] | [standalone]
| From | alister <alister.nospam.ware@ntlworld.com> |
|---|---|
| Date | 2014-10-10 17:31 +0000 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <LJUZv.625235$m41.70403@fx34.am4> |
| In reply to | #78910 |
On Thu, 09 Oct 2014 23:48:36 +0300, Marko Rauhamaa wrote: > Tim Delaney <timothy.c.delaney@gmail.com>: > >> It's very annoying to have some methods use "z" and others "s" in the >> same package. > > "-ize" is standard everywhere in the English-speaking world. Not in England! > > Americans insist on "analyze," "paralyze" and "catalyze" but > paradoxically also on "lyse". > >> So since I'm currently working for a US company I have to consciously >> remind myself to use their abominations ;) > > I will use American English instead of my native Finnish in my code so > why wouldn't you use American English instead of your native variant of > English? > Because I am English, I use English English (mostly, but interspersed with a large dose of bollocks :-) ) > It'll also make you get a remote sense of the pain the French are > feeling. > > If it's any consolation, even the Atlanta-based CNN makes their anchors > speak standard Hollywoodese. > > > Marko -- I brought my BOWLING BALL -- and some DRUGS!!
[toc] | [prev] | [next] | [standalone]
| From | Marko Rauhamaa <marko@pacujo.net> |
|---|---|
| Date | 2014-10-10 22:01 +0300 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <87y4sneok9.fsf@elektro.pacujo.net> |
| In reply to | #78958 |
alister <alister.nospam.ware@ntlworld.com>: > On Thu, 09 Oct 2014 23:48:36 +0300, Marko Rauhamaa wrote: > >> "-ize" is standard everywhere in the English-speaking world. > > Not in England! <URL: http://www.oxforddictionaries.com/definition/english/realize> Both -ize and -ise are valid in England. >> why wouldn't you use American English instead of your native variant >> of English? >> > Because I am English, I use English English How can you expect the French to use English if you are not willing to make the token gesture of using American spelling in the names of your variables? Marko
[toc] | [prev] | [next] | [standalone]
| From | alister <alister.nospam.ware@ntlworld.com> |
|---|---|
| Date | 2014-10-10 20:05 +0000 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <WZWZv.534543$Jh7.354758@fx27.am4> |
| In reply to | #78963 |
On Fri, 10 Oct 2014 22:01:58 +0300, Marko Rauhamaa wrote: > alister <alister.nospam.ware@ntlworld.com>: > >> On Thu, 09 Oct 2014 23:48:36 +0300, Marko Rauhamaa wrote: >> >>> "-ize" is standard everywhere in the English-speaking world. >> >> Not in England! > > <URL: http://www.oxforddictionaries.com/definition/english/realize> > > Both -ize and -ise are valid in England. > >>> why wouldn't you use American English instead of your native variant >>> of English? >>> >> Because I am English, I use English English > > How can you expect the French to use English if you are not willing to > make the token gesture of using American spelling in the names of your > variables? > > > Marko Would the French tolerate me using an alternative Variant (Canadian or Carribean)? I think not UK English as spoken in England is the definitive version. The clue is in the Name - English not American -- Whenever anyone says, "theoretically," they really mean, "not really." -- Dave Parnas
[toc] | [prev] | [next] | [standalone]
| From | Christian Gollwitzer <auriocus@gmx.de> |
|---|---|
| Date | 2014-10-11 11:37 +0200 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <m1atpe$t3f$1@dont-email.me> |
| In reply to | #78972 |
Am 10.10.14 22:05, schrieb alister: > Would the French tolerate me using an alternative Variant (Canadian or > Carribean)? I think not > > UK English as spoken in England is the definitive version. The clue is in > the Name - English not American I tend to agree that British English is the "correct" version for me, since I'm European, though not British. The usage of -ise in verbs, however, is a newer attempt to set the British English apart from the American: http://blog.oxforddictionaries.com/2011/03/ize-or-ise/ and http://www.oxforddictionaries.com/words/ize-ise-or-yse Being a non-native English speaker/writer, I myself stick to the recommendations of the Oxford dictionary. Christian
[toc] | [prev] | [next] | [standalone]
| From | mm0fmf <none@mailinator.com> |
|---|---|
| Date | 2014-10-11 12:45 +0100 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <7L8_v.450636$NQ4.108421@fx26.am4> |
| In reply to | #78980 |
On 11/10/2014 10:37, Christian Gollwitzer wrote: > Being a non-native English speaker/writer, I myself stick to the > recommendations of the Oxford dictionary. > > Christian But you do realise the Oxford dictionary is different to English usage and is renowned for using what is known as Oxford spelling? You wont find -ize used by the BBC in content for the UK nor will you find British newspapers using it. The Oxford spellings are so far out on their own you can set en-GB as a language tag or en-GB-oed.
[toc] | [prev] | [next] | [standalone]
| From | duncan smith <buzzard@invalid.invalid> |
|---|---|
| Date | 2014-10-11 16:26 +0100 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <54394c37$0$48107$862e30e2@ngroups.net> |
| In reply to | #78984 |
On 11/10/14 12:45, mm0fmf wrote: > On 11/10/2014 10:37, Christian Gollwitzer wrote: >> Being a non-native English speaker/writer, I myself stick to the >> recommendations of the Oxford dictionary. >> >> Christian > > But you do realise the Oxford dictionary is different to English usage > and is renowned for using what is known as Oxford spelling? You wont > find -ize used by the BBC in content for the UK nor will you find > British newspapers using it. > [snip] I don't know about the BBC etc. but it pretty much corresponds to my usage. I tend to use 'ize', but not for words like analyse (where for whatever reason it just doesn't look right with a 'z' - maybe because realization is fine but analyzis is not). I suspect some non-US English speakers, when faced with the option, assume the 'z' might be a US spelling and opt for the 's' instead. A useful rule of thumb perhaps, that might make 's' common usage for e.g. the BBC / newspapers. But 'z' is still used by some of us outside the media. The media have their own quirks when it comes to English. The BBC regularly use "top of" / "bottom of" in the sense of "start of" / "end of", but I don't know any British people who would (currently) use that in conversation. (This only started a few years ago, and the first time I heard it I had to work out what it meant from context.) Duncan
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2014-10-11 15:20 -0400 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <mailman.14779.1413055220.18130.python-list@python.org> |
| In reply to | #78985 |
On Sat, 11 Oct 2014 16:26:43 +0100, duncan smith <buzzard@invalid.invalid>
declaimed the following:
>The media have their own quirks when it comes to English. The BBC
>regularly use "top of" / "bottom of" in the sense of "start of" / "end
>of", but I don't know any British people who would (currently) use that
>in conversation. (This only started a few years ago, and the first time
>I heard it I had to work out what it meant from context.)
>
That usage I think is ancient... I'm sure I've heard it back when there
was a reasonable BBC World Service (along with VOA, Radio Netherlands, and
etc. running on Short Wave"...
Top of the Hour...
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | William Ray Wing <wrw@mac.com> |
|---|---|
| Date | 2014-10-11 15:55 -0400 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <mailman.14780.1413057358.18130.python-list@python.org> |
| In reply to | #78985 |
On Oct 11, 2014, at 3:20 PM, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote: > On Sat, 11 Oct 2014 16:26:43 +0100, duncan smith <buzzard@invalid.invalid> > declaimed the following: > > >> The media have their own quirks when it comes to English. The BBC >> regularly use "top of" / "bottom of" in the sense of "start of" / "end >> of", but I don't know any British people who would (currently) use that >> in conversation. (This only started a few years ago, and the first time >> I heard it I had to work out what it meant from context.) >> > > That usage I think is ancient... I'm sure I've heard it back when there > was a reasonable BBC World Service (along with VOA, Radio Netherlands, and > etc. running on Short Wave"... > > Top of the Hour… Of course, musicians have used it for years, as in “Take it from the top.” And (with reference to the earlier discussion), just because something is specified in the Oxford English Dictionary, doesn’t mean it is universally approved of. Take the “Oxford Comma” for example. -Bill
[toc] | [prev] | [next] | [standalone]
| From | duncan smith <buzzard@invalid.invalid> |
|---|---|
| Date | 2014-10-12 00:40 +0100 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <5439bffe$0$48338$862e30e2@ngroups.net> |
| In reply to | #78990 |
On 11/10/14 20:55, William Ray Wing wrote: > On Oct 11, 2014, at 3:20 PM, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote: > >> On Sat, 11 Oct 2014 16:26:43 +0100, duncan smith <buzzard@invalid.invalid> >> declaimed the following: >> >> >>> The media have their own quirks when it comes to English. The BBC >>> regularly use "top of" / "bottom of" in the sense of "start of" / "end >>> of", but I don't know any British people who would (currently) use that >>> in conversation. (This only started a few years ago, and the first time >>> I heard it I had to work out what it meant from context.) >>> >> >> That usage I think is ancient... I'm sure I've heard it back when there >> was a reasonable BBC World Service (along with VOA, Radio Netherlands, and >> etc. running on Short Wave"... >> >> Top of the Hour… > > Of course, musicians have used it for years, as in “Take it from the top.” > [snip] I think it must be a more recent thing with BBC (TV) presenters / newsreaders (I rarely listen to radio); or, at least, it has become a lot more common. I can see it makes perfect sense with e.g. sheet music. You start again at the top. It was the "top / bottom of the [TV] programme" that I didn't immediately get, because I was thinking of a timeline running left to right (perhaps rather than the script used by the presenters). Duncan
[toc] | [prev] | [next] | [standalone]
| From | giacomo boffi <pecore@pascolo.net> |
|---|---|
| Date | 2014-10-18 09:06 +0200 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <87d29peu12.fsf@pascolo.net> |
| In reply to | #78992 |
duncan smith <buzzard@invalid.invalid> writes: > [...] It was the "top / bottom of the [TV] programme" that I didn't > immediately get, because I was thinking of a timeline running left > to right (perhaps rather than the script used by the presenters). is it just me that thinks of a timeline running from the wall behind the tv set into my dinette?
[toc] | [prev] | [next] | [standalone]
| From | Simon Ward <simon+python@bleah.co.uk> |
|---|---|
| Date | 2014-10-11 15:45 +0100 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <mailman.14778.1413041388.18130.python-list@python.org> |
| In reply to | #78980 |
On 11 October 2014 10:37:51 BST, Christian Gollwitzer <auriocus@gmx.de> wrote: >I tend to agree that British English is the "correct" version for me, >since I'm European, though not British. > >The usage of -ise in verbs, however, is a newer attempt to set the >British English apart from the American: > > http://blog.oxforddictionaries.com/2011/03/ize-or-ise/ and > http://www.oxforddictionaries.com/words/ize-ise-or-yse > >Being a non-native English speaker/writer, I myself stick to the >recommendations of the Oxford dictionary. Oxford Dictionaries online is not just British English, it derives common usage from a corpus of English used around the world: http://www.oxforddictionaries.com/words/what-are-the-main-differences-between-the-oed-and-odo http://www.oxforddictionaries.com/words/the-oxford-english-corpus Simon
[toc] | [prev] | [next] | [standalone]
| From | "Neil D. Cerutti" <neilc@norwich.edu> |
|---|---|
| Date | 2014-10-10 10:46 -0400 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <mailman.14754.1412952397.18130.python-list@python.org> |
| In reply to | #78906 |
On 10/9/2014 3:53 PM, Tim Delaney wrote: > That would be a theatre programme vs a computer program. > > I try to stick with the current spelling style when modifying existing > code - esp. for APIs. It's very annoying to have some methods use "z" > and others "s" in the same package. So since I'm currently working for a > US company I have to consciously remind myself to use their abominations ;) Yes, we must not allow unmetred errour to paralyse communication. -- Neil Cerutti
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-10-10 18:45 +0100 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <mailman.14758.1412963119.18130.python-list@python.org> |
| In reply to | #78906 |
On 10/10/2014 15:46, Neil D. Cerutti wrote: > On 10/9/2014 3:53 PM, Tim Delaney wrote: >> That would be a theatre programme vs a computer program. >> >> I try to stick with the current spelling style when modifying existing >> code - esp. for APIs. It's very annoying to have some methods use "z" >> and others "s" in the same package. So since I'm currently working for a >> US company I have to consciously remind myself to use their >> abominations ;) > > Yes, we must not allow unmetred errour to paralyse communication. > Ghoughpteighbteau and ghoti pie to you to. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2014-10-09 18:53 -0400 |
| Subject | Re: [OT] spelling colour / color was Re: Toggle |
| Message-ID | <mailman.14731.1412895254.18130.python-list@python.org> |
| In reply to | #78905 |
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
[toc] | [prev] | [next] | [standalone]
Page 1 of 3 [1] 2 3 Next page →
Back to top | Article view | comp.lang.python
csiph-web