Phython as In-Game scripting language

Will Ware wware at world.std.com
Thu Feb 24 18:32:05 EST 2000


shawn_leblanc at my-deja.com wrote:
: Just so I understand (and also because my
: programmer teammates are asking me questions), is
: unmodified (no stackless or microthreads) Python
: unable to run multiple scripts at the same time?
: I'm thinking no because if Python was able to run
: multiple scripts simultaneously, there
: wouldn't be a need for SP or MT's.

Sorry, my last post must have been unclear. There are standard
Python modules called "thread" and "threading" documented on
these two web pages:
http://www.python.org/doc/current/lib/module-thread.html
http://www.python.org/doc/current/lib/module-threading.html
These modules assume that threads are available at the OS level.
I think this stuff is switched on in the standard executables you'd
pull down from ftp.python.org, such is the impression I get from
looking at Modules/Setup.in.thread. I haven't verified that; you
might end up needing to rebuild Python from source to take advantage
of this.

I don't think you can get multiple scripts to run simultaneously
without using one of these three: SP, MT, OS threads. But I haven't
looked at how Zope handles this, maybe there's a fourth way I don't
know about.
-- 
 - - - - - - - - - - - - - - - - - - - - - - - -
Resistance is futile. Capacitance is efficacious.
Will Ware	email:    wware @ world.std.com



More information about the Python-list mailing list