Re: connect four (game)

2017-11-27 Thread nospam . Chris Angelico
On Mon, Nov 27, 2017 at 3:04 PM, Rustom Mody wrote: >> Aviators have pinned down the best solution to this, I think. A pilot >> is not expected to be perfect; he is expected to follow checklists. A >> preflight checklist. A departure checklist. A landing checklist. >> Everything that needs to be d

Re: Increasing the diversity of people who write Python (was:

2017-11-27 Thread nospam . Chris Angelico
On Tue, Nov 28, 2017 at 5:13 AM, Skip Montanaro wrote: >> If you have a Windows key, you can assign it to be >> the Compose key. > > Would this be true on a machine running Windows? My work environment > has me developing on Linux, with a Windows desktop. It's not clear to > me that any sort of xm

Re: Increasing the diversity of people who write Python (was:

2017-11-27 Thread nospam . Chris Angelico
On Tue, Nov 28, 2017 at 1:55 AM, Rustom Mody wrote: > On Monday, November 27, 2017 at 8:07:47 PM UTC+5:30, Chris Angelico wrote: >> On Tue, Nov 28, 2017 at 1:25 AM, Rustom Mody wrote: >> > You could go one step more sophisticated and use TeX-input method >> > (C-x RET C-\) >> > After which \'e wil

Re: connect four (game)

2017-11-27 Thread nospam . Chris Angelico
On Tue, Nov 28, 2017 at 2:14 AM, bartc wrote: > JPEG uses lossy compression. The resulting recovered data is an > approximation of the original. Ah but it is a perfect representation of the JPEG stream. Any given compressed stream must always decode to the same output. The lossiness is on the ENc

Re: connect four (game)

2017-11-27 Thread nospam . Chris Angelico
On Mon, Nov 27, 2017 at 10:38 PM, bartc wrote: > On 27/11/2017 03:04, Michael Torrie wrote: >> >> On 11/26/2017 08:39 AM, bartc wrote: >>> >>> The problem was traced to two lines that were in the wrong order (in the >>> original program). I can't see how unit tests can have helped in any way >>> a

Re: Increasing the diversity of people who write Python (was:

2017-11-27 Thread nospam . Chris Angelico
On Tue, Nov 28, 2017 at 1:25 AM, Rustom Mody wrote: > You could go one step more sophisticated and use TeX-input method > (C-x RET C-\) > After which \'e will collapse as ÄC > â £Yeah ok but how the ^)*^$# am I to remember the mantra \'e?!â Ø you may ask > Trueâ | So as you rightly do, > - pick it

Re: connect four (game)

2017-11-27 Thread nospam . Chris Angelico
On Mon, Nov 27, 2017 at 9:01 PM, wrote: > On Sunday, November 26, 2017 at 7:09:25 PM UTC-8, Michael Torrie wrote: > >> So you are using this Infinity class as a sentinel value of some kind? >> Representing game state? There may be an easier way than a full on >> custom type. Sometimes just a se

Re: connect four (game)

2017-11-27 Thread nospam . Chris Angelico
On Mon, Nov 27, 2017 at 10:08 AM, Gregory Ewing wrote: > Chris Angelico wrote: > >> On Mon, Nov 27, 2017 at 1:11 AM, bartc wrote: > >> >>> >>> If I had to bother with such systematic tests as you suggest, and finish >>> and >>> sign off everything before proceeding further, then nothing would eve

Re: connect four (game)

2017-11-27 Thread nospam . Chris Angelico
On Mon, Nov 27, 2017 at 1:55 PM, Michael Torrie wrote: > On 11/26/2017 07:11 AM, bartc wrote: >>> You may argue that testing doesn't matter for his small game, written >>> for his own education and amusement. The fact is that software in >>> general is of abysmal quality across the boards, and pr

[META] Why are duplicate posts coming through?

2017-11-27 Thread nospam . Chris Angelico
Not sure whether this is an issue for -owner or not; apologies if not. I'm seeing a whole lot of reasonably-recent posts getting re-sent, with "nospam" attached to the posters' names. And they're getting re-sent multiple times. Sometimes the posts have encoding problems (small amounts of mojibake)

Re: nospam ** infinity?

2017-11-27 Thread nospam . Chris Angelico
On Mon, Nov 27, 2017 at 12:14 PM, Skip Montanaro wrote: >> There seems to be a gateway loop of some sort going on. >> I'm seeing multiple versions of the same posts in >> comp.lang.python with different numbers of "nospam"s >> prepended to the email address. > > This is the second thread about thi

Re: [META] Why are duplicate posts coming through?

2017-11-27 Thread nospam . Chris Angelico
On Mon, Nov 27, 2017 at 11:04 AM, Skip Montanaro wrote: > Chris, > > Please forward one or two to me. Mark Sapiro and I have been banging on the > SpamBayes instance which supports the Usenet gateway. I suppose it's > possible some change caused the problem you're seeing. > > Skip Sent a couple t

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . nospam . Chris Angelico
On Sun, Nov 26, 2017 at 10:59 AM, Terry Reedy wrote: > On 11/25/2017 5:12 PM, Chris Angelico wrote: >> >> On Sun, Nov 26, 2017 at 9:05 AM, wrote: >>> >>> Hi, my goal is to obtain an interpreter that internally >>> uses UCS-2. Such a simple code should print 65535: >>> >>>import sys >>>pr

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . nospam . Chris Angelico
On Sun, Nov 26, 2017 at 9:05 AM, wrote: > Hi, my goal is to obtain an interpreter that internally > uses UCS-2. Such a simple code should print 65535: > > import sys > print sys.maxunicode > > This is enabled in Windows, but I want the same in Linux. > What options have I pass to the configur

Re: connect four (game)

2017-11-26 Thread nospam . Chris Angelico
On Mon, Nov 27, 2017 at 1:11 AM, bartc wrote: > The way I write code isn't incrementally top down or bottom up. It's > backwards and forwards. Feedback from different parts means the thing > develops as a whole. Sometimes parts are split into distinct sections, > sometimes different parts are merg

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . Chris Angelico
On Sun, Nov 26, 2017 at 3:53 PM, Rustom Mody wrote: > On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: >> On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: >> > Hi, my goal is to obtain an interpreter that internally >> > uses UCS-2. Such a simple code should print 655

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . Chris Angelico
On Sun, Nov 26, 2017 at 10:59 AM, Terry Reedy wrote: > On 11/25/2017 5:12 PM, Chris Angelico wrote: >> >> On Sun, Nov 26, 2017 at 9:05 AM, wrote: >>> >>> Hi, my goal is to obtain an interpreter that internally >>> uses UCS-2. Such a simple code should print 65535: >>> >>>import sys >>>pr

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . Chris Angelico
On Sun, Nov 26, 2017 at 9:05 AM, wrote: > Hi, my goal is to obtain an interpreter that internally > uses UCS-2. Such a simple code should print 65535: > > import sys > print sys.maxunicode > > This is enabled in Windows, but I want the same in Linux. > What options have I pass to the configur