ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Library Reference
7. Optional Operating System Services
7.1 signal -- Set handlers for asynchronous events
7.2 socket -- Low-level networking interface
7.3 select -- Waiting for I/O completion
7.4 thread -- Multiple threads of control
7.5 threading -- Higher-level threading interface
7.6 dummy thread -- Drop-in replacement for the thread module
7.7 dummy threading -- Drop-in replacement for the threading module
7.8 Queue -- A synchronized queue class
7.9 mmap -- Memory-mapped file support
7.10 anydbm -- Generic access to DBM-style databases
7.11 dbhash -- DBM-style interface to the BSD database library
7.12 whichdb -- Guess which DBM module created a database
7.13 bsddb -- Interface to Berkeley DB library
7.14 dumbdbm -- Portable DBM implementation
7.15 zlib -- Compression compatible with gzip
7.16 gzip -- Support for gzip files
7.17 bz2 -- Compression compatible with bzip2
7.18 zipfile -- Work with ZIP archives
7.19 tarfile -- Read and write tar archive files
7.20 readline -- GNU readline interface
7.21 rlcompleter -- Completion function for GNU readline

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Library Reference >> 7. Optional Operating System Services
ActivePython 2.4 documentation

7.6 dummy_thread -- Drop-in replacement for the thread module

This module provides a duplicate interface to the thread module. It is meant to be imported when the thread module is not provided on a platform.

Suggested usage is:

try:
    import thread as _thread
except ImportError:
    import dummy_thread as _thread

Be careful to not use this module where deadlock might occur from a thread being created that blocks waiting for another thread to be created. This often occurs with blocking I/O.

See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved