mmap.mmap.find()

find(sub[, start[, end]]) Returns the lowest index in the object where the subsequence sub is found, such that sub is contained in the range [start, end]. Optional arguments start and end are interpreted as in slice notation. Returns -1 on failure. Changed in version 3.5: Writable bytes-like object is now accepted.

asyncore.dispatcher.handle_accepted()

handle_accepted(sock, addr) Called on listening channels (passive openers) when a connection has been established with a new remote endpoint that has issued a connect() call for the local endpoint. sock is a new socket object usable to send and receive data on the connection, and addr is the address bound to the socket on the other end of the connection. New in version 3.2.

socket.if_indextoname()

socket.if_indextoname(if_index) Return a network interface name corresponding to an interface index number. OSError if no interface with the given index exists. Availability: Unix. New in version 3.3.

signal.getitimer()

signal.getitimer(which) Returns current value of a given interval timer specified by which. Availability: Unix.

gc.isenabled()

gc.isenabled() Returns true if automatic collection is enabled.

signal.alarm()

signal.alarm(time) If time is non-zero, this function requests that a SIGALRM signal be sent to the process in time seconds. Any previously scheduled alarm is canceled (only one alarm can be scheduled at any time). The returned value is then the number of seconds before any previously set alarm was to have been delivered. If time is zero, no alarm is scheduled, and any scheduled alarm is canceled. If the return value is zero, no alarm is currently scheduled. (See the Unix man page alarm(2).)

socket.getaddrinfo()

socket.getaddrinfo(host, port, family=0, type=0, proto=0, flags=0) Translate the host/port argument into a sequence of 5-tuples that contain all the necessary arguments for creating a socket connected to that service. host is a domain name, a string representation of an IPv4/v6 address or None. port is a string service name such as 'http', a numeric port number or None. By passing None as the value of host and port, you can pass NULL to the underlying C API. The family, type and proto argume

urllib.parse.quote_plus()

urllib.parse.quote_plus(string, safe='', encoding=None, errors=None) Like quote(), but also replace spaces by plus signs, as required for quoting HTML form values when building up a query string to go into a URL. Plus signs in the original string are escaped unless they are included in safe. It also does not have safe default to '/'. Example: quote_plus('/El NiƱo/') yields '%2FEl+Ni%C3%B1o%2F'.

socket.CMSG_SPACE()

socket.CMSG_SPACE(length) Return the buffer size needed for recvmsg() to receive an ancillary data item with associated data of the given length, along with any trailing padding. The buffer space needed to receive multiple items is the sum of the CMSG_SPACE() values for their associated data lengths. Raises OverflowError if length is outside the permissible range of values. Note that some systems might support ancillary data without providing this function. Also note that setting the buffer

mailbox.Maildir.remove_folder()

remove_folder(folder) Delete the folder whose name is folder. If the folder contains any messages, a NotEmptyError exception will be raised and the folder will not be deleted.