hashlib.hash.name

hash.name The canonical name of this hash, always lowercase and always suitable as a parameter to new() to create another hash of this type. Changed in version 3.4: The name attribute has been present in CPython since its inception, but until Python 3.4 was not formally specified, so may not exist on some platforms.

collections.abc.Generator

class collections.abc.Generator ABC for generator classes that implement the protocol defined in PEP 342 that extends iterators with the send(), throw() and close() methods. See also the definition of generator. New in version 3.5.

mimetypes.read_mime_types()

mimetypes.read_mime_types(filename) Load the type map given in the file filename, if it exists. The type map is returned as a dictionary mapping filename extensions, including the leading dot ('.'), to strings of the form 'type/subtype'. If the file filename does not exist or cannot be read, None is returned.

logging.handlers.MemoryHandler.close()

close() Calls flush(), sets the target to None and clears the buffer.

os.pread()

os.pread(fd, buffersize, offset) Read from a file descriptor, fd, at a position of offset. It will read up to buffersize number of bytes. The file offset remains unchanged. Availability: Unix. New in version 3.3.

threading.Barrier.n_waiting

n_waiting The number of threads currently waiting in the barrier.

random.triangular()

random.triangular(low, high, mode) Return a random floating point number N such that low <= N <= high and with the specified mode between those bounds. The low and high bounds default to zero and one. The mode argument defaults to the midpoint between the bounds, giving a symmetric distribution.

os.getcwdb()

os.getcwdb() Return a bytestring representing the current working directory.

unittest.registerResult()

unittest.registerResult(result) Register a TestResult object for control-c handling. Registering a result stores a weak reference to it, so it doesn’t prevent the result from being garbage collected. Registering a TestResult object has no side-effects if control-c handling is not enabled, so test frameworks can unconditionally register all results they create independently of whether or not handling is enabled.

mailbox.Mailbox.unlock()

unlock() Release the lock on the mailbox, if any.