sys.exc_info()

sys.exc_info() This function returns a tuple of three values that give information about the exception that is currently being handled. The information returned is specific both to the current thread and to the current stack frame. If the current stack frame is not handling an exception, the information is taken from the calling stack frame, or its caller, and so on until a stack frame is found that is handling an exception. Here, “handling an exception” is defined as “executing an except cl

string.octdigits

string.octdigits The string '01234567'.

codecs.IncrementalDecoder.setstate()

setstate(state) Set the state of the encoder to state. state must be a decoder state returned by getstate().

curses.update_lines_cols()

curses.update_lines_cols() Update LINES and COLS. Useful for detecting manual screen resize. New in version 3.5.

urllib.parse.DefragResultBytes

class urllib.parse.DefragResultBytes(url, fragment) Concrete class for urldefrag() results containing bytes data. The decode() method returns a DefragResult instance. New in version 3.2.

zipfile.is_zipfile()

zipfile.is_zipfile(filename) Returns True if filename is a valid ZIP file based on its magic number, otherwise returns False. filename may be a file or file-like object too. Changed in version 3.1: Support for file and file-like objects.

pathlib.PurePath.suffix

PurePath.suffix The file extension of the final component, if any: >>> PurePosixPath('my/library/setup.py').suffix '.py' >>> PurePosixPath('my/library.tar.gz').suffix '.gz' >>> PurePosixPath('my/library').suffix ''

unittest.TestCase.assertEqual()

assertEqual(first, second, msg=None) Test that first and second are equal. If the values do not compare equal, the test will fail. In addition, if first and second are the exact same type and one of list, tuple, dict, set, frozenset or str or any type that a subclass registers with addTypeEqualityFunc() the type-specific equality function will be called in order to generate a more useful default error message (see also the list of type-specific methods). Changed in version 3.1: Added the au

tkinter.tix.InputOnly

class tkinter.tix.InputOnly The InputOnly widgets are to accept inputs from the user, which can be done with the bind command (Unix only).

ftplib.FTP.set_pasv()

FTP.set_pasv(boolean) Enable “passive” mode if boolean is true, other disable passive mode. Passive mode is on by default.