wsgiref.util.application_uri()

wsgiref.util.application_uri(environ) Similar to request_uri(), except that the PATH_INFO and QUERY_STRING variables are ignored. The result is the base URI of the application object addressed by the request.

FloatingPointError

exception FloatingPointError Raised when a floating point operation fails. This exception is always defined, but can only be raised when Python is configured with the --with-fpectl option, or the WANT_SIGFPE_HANDLER symbol is defined in the pyconfig.h file.

xml.etree.ElementTree.Element.getiterator()

getiterator(tag=None) Deprecated since version 3.2: Use method Element.iter() instead.

pathlib.Path.is_socket()

Path.is_socket() Return True if the path points to a Unix socket (or a symbolic link pointing to a Unix socket), False if it points to another kind of file. False is also returned if the path doesn’t exist or is a broken symlink; other errors (such as permission errors) are propagated.

sqlite3.Cursor.executemany()

executemany(sql, seq_of_parameters) Executes an SQL command against all parameter sequences or mappings found in the sequence seq_of_parameters. The sqlite3 module also allows using an iterator yielding parameters instead of a sequence. import sqlite3 class IterChars: def __init__(self): self.count = ord('a') def __iter__(self): return self def __next__(self): if self.count > ord('z'): raise StopIteration self.count += 1 r

datetime.date.weekday()

date.weekday() Return the day of the week as an integer, where Monday is 0 and Sunday is 6. For example, date(2002, 12, 4).weekday() == 2, a Wednesday. See also isoweekday().

turtle.pu()

turtle.pu() turtle.up() Pull the pen up – no drawing when moving.

smtplib.SMTP.set_debuglevel()

SMTP.set_debuglevel(level) Set the debug output level. A value of 1 or True for level results in debug messages for connection and for all messages sent to and received from the server. A value of 2 for level results in these messages being timestamped. Changed in version 3.5: Added debuglevel 2.

email.message.Message.get_default_type()

get_default_type() Return the default content type. Most messages have a default content type of text/plain, except for messages that are subparts of multipart/digest containers. Such subparts have a default content type of message/rfc822.

cmath.isfinite()

cmath.isfinite(x) Return True if both the real and imaginary parts of x are finite, and False otherwise. New in version 3.2.