running functions

Grant Edwards grante at visi.com
Wed Nov 16 16:45:12 EST 2005


On 2005-11-16, Gorlon the Impossible <meatpodeye at yahoo.com> wrote:

> I'm not sure how to phrase this question. I have a Python function
> that sends MIDI messages to a synth. When I run it, I of course have
> to wait until it is finished before I can do anything else with
> Python. Is it possible to run this function and still be able to do
> other things with Python while it is running?

Yes.

> Is that what threading is about?

Exactly.  Take a look at the "treading" module:

http://www.python.org/doc/current/lib/module-threading.html

-- 
Grant Edwards                   grante             Yow!  BRILL CREAM is
                                  at               CREAM O' WHEAT in another
                               visi.com            DIMENSION...



More information about the Python-list mailing list