http.server.BaseHTTPRequestHandler.handle_one_request()

handle_one_request() This method will parse and dispatch the request to the appropriate do_*() method. You should never need to override it.

types.ModuleType.__package__

__package__ Which package a module belongs to. If the module is top-level (i.e. not a part of any specific package) then the attribute should be set to '', else it should be set to the name of the package (which can be __name__ if the module is a package itself). Defaults to None. Changed in version 3.4: Defaults to None. Previously the attribute was optional.

urllib.request.OpenerDirector.add_handler()

OpenerDirector.add_handler(handler) handler should be an instance of BaseHandler. The following methods are searched, and added to the possible chains (note that HTTP errors are a special case). protocol_open() — signal that the handler knows how to open protocol URLs. http_error_type() — signal that the handler knows how to handle HTTP errors with HTTP error code type. protocol_error() — signal that the handler knows how to handle errors from (non-http) protocol. protocol_request() — si

urllib.parse.urlsplit()

urllib.parse.urlsplit(urlstring, scheme='', allow_fragments=True) This is similar to urlparse(), but does not split the params from the URL. This should generally be used instead of urlparse() if the more recent URL syntax allowing parameters to be applied to each segment of the path portion of the URL (see RFC 2396) is wanted. A separate function is needed to separate the path segments and parameters. This function returns a 5-tuple: (addressing scheme, network location, path, query, fragme

urllib.request.HTTPHandler.http_open()

HTTPHandler.http_open(req) Send an HTTP request, which can be either GET or POST, depending on req.has_data().

xml.dom.InuseAttributeErr

exception xml.dom.InuseAttributeErr Raised when an attempt is made to insert an Attr node that is already present elsewhere in the document.

datetime.datetime

class datetime.datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None) The year, month and day arguments are required. tzinfo may be None, or an instance of a tzinfo subclass. The remaining arguments may be integers, in the following ranges: MINYEAR <= year <= MAXYEAR 1 <= month <= 12 1 <= day <= number of days in the given month and year 0 <= hour < 24 0 <= minute < 60 0 <= second < 60 0 <= microsecond < 1000000 If an ar

pstats.Stats.strip_dirs()

strip_dirs() This method for the Stats class removes all leading path information from file names. It is very useful in reducing the size of the printout to fit within (close to) 80 columns. This method modifies the object, and the stripped information is lost. After performing a strip operation, the object is considered to have its entries in a “random” order, as it was just after object initialization and loading. If strip_dirs() causes two function names to be indistinguishable (they are

configparser.ConfigParser.getboolean()

getboolean(section, option, *, raw=False, vars=None[, fallback]) A convenience method which coerces the option in the specified section to a Boolean value. Note that the accepted values for the option are '1', 'yes', 'true', and 'on', which cause this method to return True, and '0', 'no', 'false', and 'off', which cause it to return False. These string values are checked in a case-insensitive manner. Any other value will cause it to raise ValueError. See get() for explanation of raw, vars an

email.policy.Compat32.fold()

fold(name, value) Headers are folded using the Header folding algorithm, which preserves existing line breaks in the value, and wraps each resulting line to the max_line_length. Non-ASCII binary data are CTE encoded using the unknown-8bit charset.