functools.lru_cache()

@functools.lru_cache(maxsize=128, typed=False) Decorator to wrap a function with a memoizing callable that saves up to the maxsize most recent calls. It can save time when an expensive or I/O bound function is periodically called with the same arguments. Since a dictionary is used to cache results, the positional and keyword arguments to the function must be hashable. If maxsize is set to None, the LRU feature is disabled and the cache can grow without bound. The LRU feature performs best wh

xml.sax.xmlreader.XMLReader.setFeature()

XMLReader.setFeature(featurename, value) Set the featurename to value. If the feature is not recognized, SAXNotRecognizedException is raised. If the feature or its setting is not supported by the parser, SAXNotSupportedException is raised.

re.subn()

re.subn(pattern, repl, string, count=0, flags=0) Perform the same operation as sub(), but return a tuple (new_string, number_of_subs_made). Changed in version 3.1: Added the optional flags argument. Changed in version 3.5: Unmatched groups are replaced with an empty string.

parser.ST.totuple()

ST.totuple(line_info=False, col_info=False) Same as st2tuple(st, line_info, col_info).

datetime.timezone

class datetime.timezone(offset[, name]) The offset argument must be specified as a timedelta object representing the difference between the local time and UTC. It must be strictly between -timedelta(hours=24) and timedelta(hours=24) and represent a whole number of minutes, otherwise ValueError is raised. The name argument is optional. If specified it must be a string that is used as the value returned by the tzname(dt) method. Otherwise, tzname(dt) returns a string ‘UTCsHH:MM’, where s is th

_thread.allocate_lock()

_thread.allocate_lock() Return a new lock object. Methods of locks are described below. The lock is initially unlocked.

test.support.skip_unless_symlink()

@test.support.skip_unless_symlink A decorator for running tests that require support for symbolic links.

calendar.Calendar.itermonthdays2()

itermonthdays2(year, month) Return an iterator for the month month in the year year similar to itermonthdates(). Days returned will be tuples consisting of a day number and a week day number.

datetime.datetime.resolution

datetime.resolution The smallest possible difference between non-equal datetime objects, timedelta(microseconds=1).

zipfile.ZipInfo.reserved

ZipInfo.reserved Must be zero.