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

re.match.re

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

os.stat_result.st_mtime

st_mtime Time of most recent content modification expressed in seconds.

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.

curses.window.getbkgd()

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

reprlib.Repr.maxlist

Repr.maxlist Repr.maxtuple Repr.maxset Repr.maxfrozenset Repr.maxdeque Repr.maxarray Limits on the number of entries represented for the named object type. The default is 4 for maxdict, 5 for maxarray, and 6 for the others.

types.GetSetDescriptorType

types.GetSetDescriptorType The type of objects defined in extension modules with PyGetSetDef, such as FrameType.f_locals or array.array.typecode. This type is used as descriptor for object attributes; it has the same purpose as the property type, but for classes defined in extension modules.

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.ascii.isascii()

curses.ascii.isascii(c) Checks for a character value that fits in the 7-bit ASCII set.

mmap.mmap.tell()

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