argparse.ArgumentParser.add_argument_group()

ArgumentParser.add_argument_group(title=None, description=None) By default, ArgumentParser groups command-line arguments into “positional arguments” and “optional arguments” when displaying help messages. When there is a better conceptual grouping of arguments than this default one, appropriate groups can be created using the add_argument_group() method: >>> parser = argparse.ArgumentParser(prog='PROG', add_help=False) >>> group = parser.add_argument_group('group') >>

unittest.skipUnless()

@unittest.skipUnless(condition, reason) Skip the decorated test unless condition is true.

tkinter.tix.Meter

class tkinter.tix.Meter The Meter widget can be used to show the progress of a background job which may take a long time to execute.

http.cookiejar.CookieJar.clear_session_cookies()

CookieJar.clear_session_cookies() Discard all session cookies. Discards all contained cookies that have a true discard attribute (usually because they had either no max-age or expires cookie-attribute, or an explicit discard cookie-attribute). For interactive browsers, the end of a session usually corresponds to closing the browser window. Note that the save() method won’t save session cookies anyway, unless you ask otherwise by passing a true ignore_discard argument.

importlib.machinery.PathFinder.find_module()

classmethod find_module(fullname, path=None) A legacy wrapper around find_spec(). Deprecated since version 3.4: Use find_spec() instead.

bytearray.find()

bytearray.find(sub[, start[, end]]) Return the lowest index in the data where the subsequence sub is found, such that sub is contained in the slice s[start:end]. Optional arguments start and end are interpreted as in slice notation. Return -1 if sub is not found. The subsequence to search for may be any bytes-like object or an integer in the range 0 to 255. Note The find() method should be used only if you need to know the position of sub. To check if sub is a substring or not, use the in o

os.environ

os.environ A mapping object representing the string environment. For example, environ['HOME'] is the pathname of your home directory (on some platforms), and is equivalent to getenv("HOME") in C. This mapping is captured the first time the os module is imported, typically during Python startup as part of processing site.py. Changes to the environment made after this time are not reflected in os.environ, except for changes made by modifying os.environ directly. If the platform supports the pu

pathlib.PurePath.parents

PurePath.parents An immutable sequence providing access to the logical ancestors of the path: >>> p = PureWindowsPath('c:/foo/bar/setup.py') >>> p.parents[0] PureWindowsPath('c:/foo/bar') >>> p.parents[1] PureWindowsPath('c:/foo') >>> p.parents[2] PureWindowsPath('c:/')

locale.format()

locale.format(format, val, grouping=False, monetary=False) Formats a number val according to the current LC_NUMERIC setting. The format follows the conventions of the % operator. For floating point values, the decimal point is modified if appropriate. If grouping is true, also takes the grouping into account. If monetary is true, the conversion uses monetary thousands separator and grouping strings. Please note that this function will only work for exactly one %char specifier. For whole form

ossaudiodev.oss_mixer_device.set()

oss_mixer_device.set(control, (left, right)) Sets the volume for a given mixer control to (left,right). left and right must be ints and between 0 (silent) and 100 (full volume). On success, the new volume is returned as a 2-tuple. Note that this may not be exactly the same as the volume specified, because of the limited resolution of some soundcard’s mixers. Raises OSSAudioError if an invalid mixer control was specified, or if the specified volumes were out-of-range.