multiprocessing.connection.Listener.last_accepted

last_accepted The address from which the last accepted connection came. If this is unavailable then it is None.

urllib.error.HTTPError.headers

headers The HTTP response headers for the HTTP request that caused the HTTPError. New in version 3.4.

turtle.textinput()

turtle.textinput(title, prompt) Parameters: title – string prompt – string Pop up a dialog window for input of a string. Parameter title is the title of the dialog window, propmt is a text mostly describing what information to input. Return the string input. If the dialog is canceled, return None. >>> screen.textinput("NIM", "Name of first player:")

pathlib.Path

class pathlib.Path(*pathsegments) A subclass of PurePath, this class represents concrete paths of the system’s path flavour (instantiating it creates either a PosixPath or a WindowsPath): >>> Path('setup.py') PosixPath('setup.py') pathsegments is specified similarly to PurePath.

turtle.update()

turtle.update() Perform a TurtleScreen update. To be used when tracer is turned off.

gc.collect()

gc.collect(generations=2) With no arguments, run a full collection. The optional argument generation may be an integer specifying which generation to collect (from 0 to 2). A ValueError is raised if the generation number is invalid. The number of unreachable objects found is returned. The free lists maintained for a number of built-in types are cleared whenever a full collection or collection of the highest generation (2) is run. Not all items in some free lists may be freed due to the parti

code.InteractiveInterpreter.showsyntaxerror()

InteractiveInterpreter.showsyntaxerror(filename=None) Display the syntax error that just occurred. This does not display a stack trace because there isn’t one for syntax errors. If filename is given, it is stuffed into the exception instead of the default filename provided by Python’s parser, because it always uses '<string>' when reading from a string. The output is written by the write() method.

curses.window.addnstr()

window.addnstr(str, n[, attr]) window.addnstr(y, x, str, n[, attr]) Paint at most n characters of the string str at (y, x) with attributes attr, overwriting anything previously on the display.

abs()

abs(x) Return the absolute value of a number. The argument may be an integer or a floating point number. If the argument is a complex number, its magnitude is returned.

curses.doupdate()

curses.doupdate() Update the physical screen. The curses library keeps two data structures, one representing the current physical screen contents and a virtual screen representing the desired next state. The doupdate() ground updates the physical screen to match the virtual screen. The virtual screen may be updated by a noutrefresh() call after write operations such as addstr() have been performed on a window. The normal refresh() call is simply noutrefresh() followed by doupdate(); if you h