data structuresalgorithmsand code simplification abc array xiii notes bisect collections deque and defaultdict named tuples abstract base classes contextlib functools heapq itertools examples operator string and text handling codecs low-level codecs interface / -related functions useful constants standard encodings re notes pattern syntax functions regular expression objects match objects example notes string constants formatter objects template strings utility functions struct packing and unpacking functions struct objects lib fl ff