gzip.GzipFile.peek()

peek(n) Read n uncompressed bytes without advancing the file position. At most one single read on the compressed stream is done to satisfy the call. The number of bytes returned may be more or less than requested. Note While calling peek() does not change the file position of the GzipFile, it may change the position of the underlying file object (e.g. if the GzipFile was constructed with the fileobj parameter). New in version 3.2.

logging.critical()

logging.critical(msg, *args, **kwargs) Logs a message with level CRITICAL on the root logger. The arguments are interpreted as for debug().

mailbox.mboxMessage.remove_flag()

remove_flag(flag) Unset the flag(s) specified by flag without changing other flags. To remove more than one flag at a time, flag maybe a string of more than one character.

socket.socket.close()

socket.close() Mark the socket closed. The underlying system resource (e.g. a file descriptor) is also closed when all file objects from makefile() are closed. Once that happens, all future operations on the socket object will fail. The remote end will receive no more data (after queued data is flushed). Sockets are automatically closed when they are garbage-collected, but it is recommended to close() them explicitly, or to use a with statement around them. Note close() releases the resourc

reprlib.aRepr

reprlib.aRepr This is an instance of Repr which is used to provide the repr() function described below. Changing the attributes of this object will affect the size limits used by repr() and the Python debugger.

codecs.getwriter()

codecs.getwriter(encoding) Look up the codec for the given encoding and return its StreamWriter class or factory function. Raises a LookupError in case the encoding cannot be found.

multiprocessing.get_logger()

multiprocessing.get_logger() Returns the logger used by multiprocessing. If necessary, a new one will be created. When first created the logger has level logging.NOTSET and no default handler. Messages sent to this logger will not by default propagate to the root logger. Note that on Windows child processes will only inherit the level of the parent process’s logger – any other customization of the logger will not be inherited.

http.server.SimpleHTTPRequestHandler.extensions_map

extensions_map A dictionary mapping suffixes into MIME types. The default is signified by an empty string, and is considered to be application/octet-stream. The mapping is used case-insensitively, and so should contain only lower-cased keys.

inspect.ismemberdescriptor()

inspect.ismemberdescriptor(object) Return true if the object is a member descriptor. CPython implementation detail: Member descriptors are attributes defined in extension modules via PyMemberDef structures. For Python implementations without such types, this method will always return False.

random.random()

random.random() Return the next random floating point number in the range [0.0, 1.0).