multithreading
Bryan
bryanjugglercryptographer at yahoo.com
Sun Apr 8 01:04:00 EDT 2012
Kiuhnm wrote:
> My question is this: can I use 'threading' without interfering with the
> program which will import my module?
Yes. The things to avoid are described at the bottom of:
http://docs.python.org/library/threading.html
On platforms without threads, 'import threading' will fail. There's a
standard library module dummy_threading which offers fake versions of
the facilities in threading. It suggests:
try:
import threading as _threading
except ImportError:
import dummy_threading as _threading
--Bryan
More information about the Python-list
mailing list