Threads in Solaris?
Martin von Loewis
loewis at informatik.hu-berlin.de
Sun Sep 30 11:50:14 EDT 2001
jwray at mifund.com writes:
> I wrote a threaded app on my win2k box, not realizing that threads
> weren't part of the standard python install. Now that i want to
> install my code on a solaris box it complains that it doesn't have
> thread.py. I would copy the one from my win2k box, but it imports
> win32, which I'm sure wouldn't work out.
There is no thread.py module on win32; threading is a builtin module.
> So my question is, where can I get a threading module for solaris?
> I've read off verious sites that one exists, but I haven't been able
> to find it for download.
The "threading" module works portably on all platforms, using the
"thread" module as a foundation. To enable threads on Solaris, you
must recompile your Python installation, giving the --enable-threads
configure option. Depending on the Python version you are using, this
option may be the default.
Regards,
Martin
More information about the Python-list
mailing list