Re: PythonCard timer/thread tutorial

2008-12-25 Thread Mike Driscoll
On Dec 25, 7:24 am, Steven D'Aprano wrote: > On Wed, 24 Dec 2008 16:59:23 -0800, Mike Driscoll wrote: > >> Among my questions are: > >> """ A little thread we've added""" seems to be an isolated string. It > >> does not seem to be doing anything there, almost like a comment. Why is > >> it there?

Re: PythonCard timer/thread tutorial

2008-12-25 Thread Steven D'Aprano
On Wed, 24 Dec 2008 16:59:23 -0800, Mike Driscoll wrote: >> Among my questions are: >> """ A little thread we've added""" seems to be an isolated string. It >> does not seem to be doing anything there, almost like a comment. Why is >> it there? > > > That's what some people call a doc string.

Re: PythonCard timer/thread tutorial

2008-12-24 Thread Gabriel Genellina
En Wed, 24 Dec 2008 20:56:45 -0200, Sponge Nebson escribió: This is my first post. Nice to meet you all! Could one of you walk me through this code? It is from David McNab and Alex Tweedly's tutorial on timers and threads, which can be found here: Mike Driscoll has already answered your quest

Re: PythonCard timer/thread tutorial

2008-12-24 Thread Mike Driscoll
On Dec 24, 4:56 pm, Sponge Nebson wrote: > Hello all, > > This is my first post. Nice to meet you all! Could one of you walk me > through this code? > >    def myThread(*argtuple): >         """ >         A little thread we've added >         """ >         print "myThread: entered" >         q = a

PythonCard timer/thread tutorial

2008-12-24 Thread Sponge Nebson
Hello all, This is my first post. Nice to meet you all! Could one of you walk me through this code? def myThread(*argtuple): """ A little thread we've added """ print "myThread: entered" q = argtuple[0] print "myThread: starting loop" x =