ipaddress.IPv4Network.subnets()

subnets(prefixlen_diff=1, new_prefix=None) The subnets that join to make the current network definition, depending on the argument values. prefixlen_diff is the amount our prefix length should be increased by. new_prefix is the desired new prefix of the subnets; it must be larger than our prefix. One and only one of prefixlen_diff and new_prefix must be set. Returns an iterator of network objects. >>> list(ip_network('192.0.2.0/24').subnets()) [IPv4Network('192.0.2.0/25'), IPv4Netwo

pprint.PrettyPrinter.isrecursive()

PrettyPrinter.isrecursive(object) Determine if the object requires a recursive representation.

datetime.date.strftime()

date.strftime(format) Return a string representing the date, controlled by an explicit format string. Format codes referring to hours, minutes or seconds will see 0 values. For a complete list of formatting directives, see strftime() and strptime() Behavior.

email.message.Message.replace_header()

replace_header(_name, _value) Replace a header. Replace the first header found in the message that matches _name, retaining header order and field name case. If no matching header was found, a KeyError is raised.

xmlrpc.server.DocCGIXMLRPCRequestHandler.set_server_title()

DocCGIXMLRPCRequestHandler.set_server_title(server_title) Set the title used in the generated HTML documentation. This title will be used inside the HTML “title” element.

telnetlib.Telnet.write()

Telnet.write(buffer) Write a byte string to the socket, doubling any IAC characters. This can block if the connection is blocked. May raise OSError if the connection is closed. Changed in version 3.3: This method used to raise socket.error, which is now an alias of OSError.

urllib.request.ProxyDigestAuthHandler.http_error_407()

ProxyDigestAuthHandler.http_error_407(req, fp, code, msg, hdrs) Retry the request with authentication information, if available.

doctest.Example.indent

indent The example’s indentation in the containing string, i.e., the number of space characters that precede the example’s first prompt.

turtle.get_shapepoly()

turtle.get_shapepoly() Return the current shape polygon as tuple of coordinate pairs. This can be used to define a new shape or components of a compound shape. >>> turtle.shape("square") >>> turtle.shapetransform(4, -1, 0, 2) >>> turtle.get_shapepoly() ((50, -20), (30, 20), (-50, 20), (-30, -20))

curses.nl()

curses.nl() Enter newline mode. This mode translates the return key into newline on input, and translates newline into return and line-feed on output. Newline mode is initially on.