Re: [Tutor] threading in python2.7

2015-01-03 Thread Steven D'Aprano
On Fri, Jan 02, 2015 at 12:39:36PM -0800, Joseph Lee wrote: > Threads introduce interesting issues. For instance, due to Python's global > interpreter lock (GIL), only one thread can run at a given time. I'd like to make a technical correction here. The GIL is not a *language* requirement, it is

Re: [Tutor] threading in python2.7

2015-01-02 Thread Rance Hall
On Fri, Jan 2, 2015 at 3:18 PM, Alan Gauld wrote: > On 02/01/15 20:17, Rance Hall wrote: > >> I bought myself a pcduino 3 nano development board for Christmas and >> started picking up python again after a long forced hiatus. The board >> runs >> Ubuntu Precise >> > > Snap!(ish), I got an arduin

Re: [Tutor] threading in python2.7

2015-01-02 Thread Rance Hall
First, thanks Joseph for taking the time to reply. My comments interspersed below: On Fri, Jan 2, 2015 at 2:39 PM, Joseph Lee wrote: > Hi, > Answers are below. > > -Original Message- > From: Tutor [mailto:tutor-bounces+joseph.lee22590=gmail@python.org] On > Behalf Of Rance Hall > Se

Re: [Tutor] threading in python2.7

2015-01-02 Thread Joseph Lee
Hi, Answers are below. -Original Message- From: Tutor [mailto:tutor-bounces+joseph.lee22590=gmail@python.org] On Behalf Of Rance Hall Sent: Friday, January 2, 2015 12:17 PM To: tutor Subject: [Tutor] threading in python2.7 Each of the lights and sound functions are placed in a "while

Re: [Tutor] threading in python2.7

2015-01-02 Thread Alan Gauld
On 02/01/15 20:17, Rance Hall wrote: I bought myself a pcduino 3 nano development board for Christmas and started picking up python again after a long forced hiatus. The board runs Ubuntu Precise Snap!(ish), I got an arduino Uno and RaspberryPi. As I understand it the pcDuino is just a PC and