multiprocessing.managers.BaseManager.connect()

connect() Connect a local manager object to a remote manager process: >>> from multiprocessing.managers import BaseManager >>> m = BaseManager(address=('127.0.0.1', 5000), authkey=b'abc') >>> m.connect()

re.match.groupdict()

match.groupdict(default=None) Return a dictionary containing all the named subgroups of the match, keyed by the subgroup name. The default argument is used for groups that did not participate in the match; it defaults to None. For example: >>> m = re.match(r"(?P<first_name>\w+) (?P<last_name>\w+)", "Malcolm Reynolds") >>> m.groupdict() {'first_name': 'Malcolm', 'last_name': 'Reynolds'}

mailbox.Maildir.add()

add(message) __setitem__(key, message) update(arg) Warning These methods generate unique file names based upon the current process ID. When using multiple threads, undetected name clashes may occur and cause corruption of the mailbox unless threads are coordinated to avoid using these methods to manipulate the same mailbox simultaneously.

pathlib.PurePath

class pathlib.PurePath(*pathsegments) A generic class that represents the system’s path flavour (instantiating it creates either a PurePosixPath or a PureWindowsPath): >>> PurePath('setup.py') # Running on a Unix machine PurePosixPath('setup.py') Each element of pathsegments can be either a string representing a path segment, or another path object: >>> PurePath('foo', 'some/path', 'bar') PurePosixPath('foo/some/path/bar') >>> PurePath(Path('foo'), Path('bar'

array.array.index()

array.index(x) Return the smallest i such that i is the index of the first occurrence of x in the array.

os.terminal_size

class os.terminal_size A subclass of tuple, holding (columns, lines) of the terminal window size. columns Width of the terminal window in characters. lines Height of the terminal window in characters.

lzma.LZMADecompressor

class lzma.LZMADecompressor(format=FORMAT_AUTO, memlimit=None, filters=None) Create a decompressor object, which can be used to decompress data incrementally. For a more convenient way of decompressing an entire compressed stream at once, see decompress(). The format argument specifies the container format that should be used. The default is FORMAT_AUTO, which can decompress both .xz and .lzma files. Other possible values are FORMAT_XZ, FORMAT_ALONE, and FORMAT_RAW. The memlimit argument spe

time.sleep()

time.sleep(secs) Suspend execution of the calling thread for the given number of seconds. The argument may be a floating point number to indicate a more precise sleep time. The actual suspension time may be less than that requested because any caught signal will terminate the sleep() following execution of that signal’s catching routine. Also, the suspension time may be longer than requested by an arbitrary amount because of the scheduling of other activity in the system. Changed in version

html.parser.HTMLParser.handle_startendtag()

HTMLParser.handle_startendtag(tag, attrs) Similar to handle_starttag(), but called when the parser encounters an XHTML-style empty tag (<img ... />). This method may be overridden by subclasses which require this particular lexical information; the default implementation simply calls handle_starttag() and handle_endtag().

collections.abc.ValuesView

class collections.abc.ValuesView ABCs for mapping, items, keys, and values views.