logging.Filter

class logging.Filter(name='') Returns an instance of the Filter class. If name is specified, it names a logger which, together with its children, will have its events allowed through the filter. If name is the empty string, allows every event. filter(record) Is the specified record to be logged? Returns zero for no, nonzero for yes. If deemed appropriate, the record may be modified in-place by this method.

readline.get_history_item()

readline.get_history_item(index) Return the current contents of history item at index. The item index is one-based. This calls history_get() in the underlying library.

codecs.StreamWriter.reset()

reset() Flushes and resets the codec buffers used for keeping state. Calling this method should ensure that the data on the output is put into a clean state that allows appending of new fresh data without having to rescan the whole stream to recover state.

mailbox.MMDF.get_file()

get_file(key) Using the file after calling flush() or close() on the MMDF instance may yield unpredictable results or raise an exception.

inspect.BoundArguments.signature

signature A reference to the parent Signature object.

io.TextIOBase.encoding

encoding The name of the encoding used to decode the stream’s bytes into strings, and to encode strings into bytes.

unittest.TestLoader.loadTestsFromNames()

loadTestsFromNames(names, module=None) Similar to loadTestsFromName(), but takes a sequence of names rather than a single name. The return value is a test suite which supports all the tests defined for each name.

socket.fromfd()

socket.fromfd(fd, family, type, proto=0) Duplicate the file descriptor fd (an integer as returned by a file object’s fileno() method) and build a socket object from the result. Address family, socket type and protocol number are as for the socket() function above. The file descriptor should refer to a socket, but this is not checked — subsequent operations on the object may fail if the file descriptor is invalid. This function is rarely needed, but can be used to get or set socket options on

curses.unctrl()

curses.unctrl(ch) Return a string which is a printable representation of the character ch. Control characters are displayed as a caret followed by the character, for example as ^C. Printing characters are left as they are.

mmap.mmap.closed

closed True if the file is closed. New in version 3.2.