unittest.TestCase.assertTrue()

assertTrue(expr, msg=None) assertFalse(expr, msg=None) Test that expr is true (or false). Note that this is equivalent to bool(expr) is True and not to expr is True (use assertIs(expr, True) for the latter). This method should also be avoided when more specific methods are available (e.g. assertEqual(a, b) instead of assertTrue(a == b)), because they provide a better error message in case of failure.

curses.window.getbkgd()

window.getbkgd() Return the given window’s current background character/attribute pair.

xml.etree.ElementTree.Element.insert()

insert(index, subelement) Inserts subelement at the given position in this element. Raises TypeError if subelement is not an Element.

os.stat_result.st_mtime

st_mtime Time of most recent content modification expressed in seconds.

re.match.re

match.re The regular expression object whose match() or search() method produced this match instance.

weakref.WeakValueDictionary

class weakref.WeakValueDictionary([dict]) Mapping class that references values weakly. Entries in the dictionary will be discarded when no strong reference to the value exists any more. Note Caution: Because a WeakValueDictionary is built on top of a Python dictionary, it must not change size when iterating over it. This can be difficult to ensure for a WeakValueDictionary because actions performed by the program during iteration may cause items in the dictionary to vanish “by magic” (as a

mmap.mmap.tell()

tell() Returns the current position of the file pointer.

reprlib.Repr.maxlong

Repr.maxlong Maximum number of characters in the representation for an integer. Digits are dropped from the middle. The default is 40.

operator.irshift()

operator.irshift(a, b) operator.__irshift__(a, b) a = irshift(a, b) is equivalent to a >>= b.

collections.defaultdict.default_factory

default_factory This attribute is used by the __missing__() method; it is initialized from the first argument to the constructor, if present, or to None, if absent.