heapq.nsmallest()

heapq.nsmallest(n, iterable, key=None) Return a list with the n smallest elements from the dataset defined by iterable. key, if provided, specifies a function of one argument that is used to extract a comparison key from each element in the iterable: key=str.lower Equivalent to: sorted(iterable, key=key)[:n]

tracemalloc.Snapshot.load()

classmethod load(filename) Load a snapshot from a file. See also dump().

platform.python_build()

platform.python_build() Returns a tuple (buildno, builddate) stating the Python build number and date as strings.

multiprocessing.Lock.acquire()

acquire(block=True, timeout=None) Acquire a lock, blocking or non-blocking. With the block argument set to True (the default), the method call will block until the lock is in an unlocked state, then set it to locked and return True. Note that the name of this first argument differs from that in threading.Lock.acquire(). With the block argument set to False, the method call does not block. If the lock is currently in a locked state, return False; otherwise set the lock to a locked state and r

weakref.finalize.__call__()

__call__() If self is alive then mark it as dead and return the result of calling func(*args, **kwargs). If self is dead then return None.

multiprocessing.managers.SyncManager.Barrier()

Barrier(parties[, action[, timeout]]) Create a shared threading.Barrier object and return a proxy for it. New in version 3.3.

bz2.BZ2Compressor.compress()

compress(data) Provide data to the compressor object. Returns a chunk of compressed data if possible, or an empty byte string otherwise. When you have finished providing data to the compressor, call the flush() method to finish the compression process.

bz2.BZ2Decompressor.eof

eof True if the end-of-stream marker has been reached. New in version 3.3.

tarfile.TarInfo.tobuf()

TarInfo.tobuf(format=DEFAULT_FORMAT, encoding=ENCODING, errors='surrogateescape') Create a string buffer from a TarInfo object. For information on the arguments see the constructor of the TarFile class. Changed in version 3.2: Use 'surrogateescape' as the default for the errors argument.

resource.getrlimit()

resource.getrlimit(resource) Returns a tuple (soft, hard) with the current soft and hard limits of resource. Raises ValueError if an invalid resource is specified, or error if the underlying system call fails unexpectedly.