ipaddress.ip_address()

ipaddress.ip_address(address) Return an IPv4Address or IPv6Address object depending on the IP address passed as argument. Either IPv4 or IPv6 addresses may be supplied; integers less than 2**32 will be considered to be IPv4 by default. A ValueError is raised if address does not represent a valid IPv4 or IPv6 address. >>> ipaddress.ip_address('192.168.0.1') IPv4Address('192.168.0.1') >>> ipaddress.ip_address('2001:db8::') IPv6Address('2001:db8::')

shlex.shlex.escapedquotes

shlex.escapedquotes Characters in quotes that will interpret escape characters defined in escape. This is only used in POSIX mode, and includes just '"' by default.

turtle.isvisible()

turtle.isvisible() Return True if the Turtle is shown, False if it’s hidden. >>> turtle.hideturtle() >>> turtle.isvisible() False >>> turtle.showturtle() >>> turtle.isvisible() True

mmap.mmap.readline()

readline() Returns a single line, starting at the current file position and up to the next newline.

tkinter.ttk.Treeview.bbox()

bbox(item, column=None) Returns the bounding box (relative to the treeview widget’s window) of the specified item in the form (x, y, width, height). If column is specified, returns the bounding box of that cell. If the item is not visible (i.e., if it is a descendant of a closed item or is scrolled offscreen), returns an empty string.

asyncio.SubprocessProtocol.pipe_connection_lost()

SubprocessProtocol.pipe_connection_lost(fd, exc) Called when one of the pipes communicating with the child process is closed. fd is the integer file descriptor that was closed.

imaplib.IMAP4.PROTOCOL_VERSION

IMAP4.PROTOCOL_VERSION The most recent supported protocol in the CAPABILITY response from the server.

wsgiref.handlers.BaseHandler.log_exception()

log_exception(exc_info) Log the exc_info tuple in the server log. exc_info is a (type, value, traceback) tuple. The default implementation simply writes the traceback to the request’s wsgi.errors stream and flushes it. Subclasses can override this method to change the format or retarget the output, mail the traceback to an administrator, or whatever other action may be deemed suitable.

sys.excepthook()

sys.excepthook(type, value, traceback) This function prints out a given traceback and exception to sys.stderr. When an exception is raised and uncaught, the interpreter calls sys.excepthook with three arguments, the exception class, exception instance, and a traceback object. In an interactive session this happens just before control is returned to the prompt; in a Python program this happens just before the program exits. The handling of such top-level exceptions can be customized by assign

str.isidentifier()

str.isidentifier() Return true if the string is a valid identifier according to the language definition, section Identifiers and keywords. Use keyword.iskeyword() to test for reserved identifiers such as def and class.