_thread.lock.acquire()

lock.acquire(waitflag=1, timeout=-1) Without any optional argument, this method acquires the lock unconditionally, if necessary waiting until it is released by another thread (only one thread at a time can acquire a lock — that’s their reason for existence). If the integer waitflag argument is present, the action depends on its value: if it is zero, the lock is only acquired if it can be acquired immediately without waiting, while if it is nonzero, the lock is acquired unconditionally as abo

_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.

_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.

_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.

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.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

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.error

exception zlib.error Exception raised on compression and decompression errors.