thread module under Windows

Pete Shinners shredwheat at attbi.com
Mon Jun 3 11:50:19 EDT 2002


Dmitri wrote:
> I have been searching the conference for the simple question like "
> where the thread module is " and got the answer that it's inside the
> python if the threading support is on.

Thread support defaults to "on" for all python compiles. all windows users 
will have thread support, unless they have specifically compiled there own 
without. an easy way to test is to just try it..


try:
     import thread
     print 'Thread support tastes good'
except ImportError:
     print 'Too bad, no Thread support'




More information about the Python-list mailing list