profile.runctx()

profile.runctx(command, globals, locals, filename=None) This function is similar to run(), with added arguments to supply the globals and locals dictionaries for the command string. This routine executes: exec(command, globals, locals) and gathers profiling statistics as in the run() function above.

ast.dump()

ast.dump(node, annotate_fields=True, include_attributes=False) Return a formatted dump of the tree in node. This is mainly useful for debugging purposes. The returned string will show the names and the values for fields. This makes the code impossible to evaluate, so if evaluation is wanted annotate_fields must be set to False. Attributes such as line numbers and column offsets are not dumped by default. If this is wanted, include_attributes can be set to True.

math.radians()

math.radians(x) Convert angle x from degrees to radians.

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.

test.support.skip_unless_symlink()

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

_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).

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.

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.