locale.format_string()

locale.format_string(format, val, grouping=False) Processes formatting specifiers as in format % val, but takes the current locale settings into account.

time.clock_getres()

time.clock_getres(clk_id) Return the resolution (precision) of the specified clock clk_id. Availability: Unix. New in version 3.3.

os.path.abspath()

os.path.abspath(path) Return a normalized absolutized version of the pathname path. On most platforms, this is equivalent to calling the function normpath() as follows: normpath(join(os.getcwd(), path)).

configparser.ConfigParser.remove_option()

remove_option(section, option) Remove the specified option from the specified section. If the section does not exist, raise NoSectionError. If the option existed to be removed, return True; otherwise return False.

re.compile()

re.compile(pattern, flags=0) Compile a regular expression pattern into a regular expression object, which can be used for matching using its match() and search() methods, described below. The expression’s behaviour can be modified by specifying a flags value. Values can be any of the following variables, combined using bitwise OR (the | operator). The sequence prog = re.compile(pattern) result = prog.match(string) is equivalent to result = re.match(pattern, string) but using re.compile() a

urllib.error.HTTPError

exception urllib.error.HTTPError Though being an exception (a subclass of URLError), an HTTPError can also function as a non-exceptional file-like return value (the same thing that urlopen() returns). This is useful when handling exotic HTTP errors, such as requests for authentication. code An HTTP status code as defined in RFC 2616. This numeric value corresponds to a value found in the dictionary of codes as found in http.server.BaseHTTPRequestHandler.responses. reason This is usu

importlib.abc.ResourceLoader

class importlib.abc.ResourceLoader An abstract base class for a loader which implements the optional PEP 302 protocol for loading arbitrary resources from the storage back-end. abstractmethod get_data(path) An abstract method to return the bytes for the data located at path. Loaders that have a file-like storage back-end that allows storing arbitrary data can implement this abstract method to give direct access to the data stored. OSError is to be raised if the path cannot be found. The p

winreg.DeleteKey()

winreg.DeleteKey(key, sub_key) Deletes the specified key. key is an already open key, or one of the predefined HKEY_* constants. sub_key is a string that must be a subkey of the key identified by the key parameter. This value must not be None, and the key may not have subkeys. This method can not delete keys with subkeys. If the method succeeds, the entire key, including all of its values, is removed. If the method fails, an OSError exception is raised. Changed in version 3.3: See above.

turtle.TurtleScreen

class turtle.TurtleScreen(cv) Parameters: cv – a tkinter.Canvas Provides screen oriented methods like setbg() etc. that are described above.

email.policy.Policy.handle_defect()

handle_defect(obj, defect) Handle a defect found on obj. When the email package calls this method, defect will always be a subclass of Defect. The default implementation checks the raise_on_defect flag. If it is True, defect is raised as an exception. If it is False (the default), obj and defect are passed to register_defect().