Re: Guilty as charged

2018-07-27 Thread Mark Lawrence
On 27/07/18 17:23, Schachner, Joseph wrote: Re: "...while thing == None would work perfectly in almost all cases in practice, it's unidiomatic and suggests the writer isn't quite comfortable with the workings of the language" I admit, I've been a C++ programmer for many years and a Python

Using Python on a fork-less POSIX-like OS

2018-07-27 Thread Barath Aron
Hello Python list, I intend to cross-compile Python v3.6.6 to Threos ( https://threos.io ) operating system. Threos is supports a quite large set from POSIX and C89/C99. Unfortunately, Threos lacks fork(2), but provides posix_spawn(3) instead. I already made some local changes in posixmodule.

Guilty as charged

2018-07-27 Thread Schachner, Joseph
Re: "...while thing == None would work perfectly in almost all cases in practice, it's unidiomatic and suggests the writer isn't quite comfortable with the workings of the language" I admit, I've been a C++ programmer for many years and a Python programmer for only about 5 years. But, I did

Re: Checking whether type is None

2018-07-27 Thread Ian Kelly
On Thu, Jul 26, 2018, 10:00 AM Stephan Houben wrote: > Op 2018-07-25, Ian Kelly schreef : > > > Is there a reason for using singledispatch here rather than a simpler and > > more readable "if color is None" check? > > Yes, the other 20 cases I didn't show. > And extensibility. > That seems like