_thread.allocate_lock()

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

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

parser.ST.totuple()

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

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.

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.handler.property_xml_string

xml.sax.handler.property_xml_string value: "http://xml.org/sax/properties/xml-string" data type: String description: The literal string of characters that was the source for the current event. access: read-only

sys.builtin_module_names

sys.builtin_module_names A tuple of strings giving the names of all modules that are compiled into this Python interpreter. (This information is not available in any other way — modules.keys() only lists the imported modules.)

os.sched_rr_get_interval()

os.sched_rr_get_interval(pid) Return the round-robin quantum in seconds for the process with PID pid. A pid of 0 means the calling process.

cmath.pi

cmath.pi The mathematical constant π, as a float.