ipaddress.IPv4Address.is_private

is_private True if the address is allocated for private networks. See iana-ipv4-special-registry (for IPv4) or iana-ipv6-special-registry (for IPv6).

csv.csvreader.fieldnames

csvreader.fieldnames If not passed as a parameter when creating the object, this attribute is initialized upon first access or when the first record is read from the file.

MemoryError

exception MemoryError Raised when an operation runs out of memory but the situation may still be rescued (by deleting some objects). The associated value is a string indicating what kind of (internal) operation ran out of memory. Note that because of the underlying memory management architecture (C’s malloc() function), the interpreter may not always be able to completely recover from this situation; it nevertheless raises an exception so that a stack traceback can be printed, in case a run-

curses.window.move()

window.move(new_y, new_x) Move cursor to (new_y, new_x).

zipfile.ZipFile.getinfo()

ZipFile.getinfo(name) Return a ZipInfo object with information about the archive member name. Calling getinfo() for a name not currently contained in the archive will raise a KeyError.

codecs.StreamReaderWriter

class codecs.StreamReaderWriter(stream, Reader, Writer, errors) Creates a StreamReaderWriter instance. stream must be a file-like object. Reader and Writer must be factory functions or classes providing the StreamReader and StreamWriter interface resp. Error handling is done in the same way as defined for the stream readers and writers.

socket.socket.getpeername()

socket.getpeername() Return the remote address to which the socket is connected. This is useful to find out the port number of a remote IPv4/v6 socket, for instance. (The format of the address returned depends on the address family — see above.) On some systems this function is not supported.

csv.csvwriter.dialect

csvwriter.dialect A read-only description of the dialect in use by the writer.

http.client.BadStatusLine

exception http.client.BadStatusLine A subclass of HTTPException. Raised if a server responds with a HTTP status code that we don’t understand.

re.regex.sub()

regex.sub(repl, string, count=0) Identical to the sub() function, using the compiled pattern.