_thread.lock.locked()

lock.locked() Return the status of the lock: True if it has been acquired by some thread, False if not.

_thread.error

exception _thread.error Raised on thread-specific errors. Changed in version 3.3: This is now a synonym of the built-in RuntimeError.

_thread.allocate_lock()

_thread.allocate_lock() Return a new lock object. Methods of locks are described below. The lock is initially unlocked.

_thread.get_ident()

_thread.get_ident() Return the ‘thread identifier’ of the current thread. This is a nonzero integer. Its value has no direct meaning; it is intended as a magic cookie to be used e.g. to index a dictionary of thread-specific data. Thread identifiers may be recycled when a thread exits and another thread is created.

_dummy_thread

Source code: Lib/_dummy_thread.py 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 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.

_thread.exit()

_thread.exit() Raise the SystemExit exception. When not caught, this will cause the thread to exit silently.

zlib.Decompress.unconsumed_tail

Decompress.unconsumed_tail A bytes object that contains any data that was not consumed by the last decompress() call because it exceeded the limit for the uncompressed data buffer. This data has not yet been seen by the zlib machinery, so you must feed it (possibly with further data concatenated to it) back to a subsequent decompress() method call in order to get correct output.

zlib.Decompress.unused_data

Decompress.unused_data A bytes object which contains any bytes past the end of the compressed data. That is, this remains b"" until the last byte that contains compression data is available. If the whole bytestring turned out to contain compressed data, this is b"", an empty bytes object.

zlib.Decompress.flush()

Decompress.flush([length]) All pending input is processed, and a bytes object containing the remaining uncompressed output is returned. After calling flush(), the decompress() method cannot be called again; the only realistic action is to delete the object. The optional parameter length sets the initial size of the output buffer.

zlib.decompressobj()

zlib.decompressobj(wbits=15[, zdict]) Returns a decompression object, to be used for decompressing data streams that won’t fit into memory at once. The wbits parameter controls the size of the history buffer (or the “window size”), and what header and trailer format is expected. It has the same meaning as described for decompress(). The zdict parameter specifies a predefined compression dictionary. If provided, this must be the same dictionary as was used by the compressor that produced the