decimal.Decimal.copy_sign()

copy_sign(other, context=None) Return a copy of the first operand with the sign set to be the same as the sign of the second operand. For example: >>> Decimal('2.3').copy_sign(Decimal('-1.5')) Decimal('-2.3') This operation is unaffected by context and is quiet: no flags are changed and no rounding is performed. As an exception, the C version may raise InvalidOperation if the second operand cannot be converted exactly.

codecs.strict_errors()

codecs.strict_errors(exception) Implements the 'strict' error handling: each encoding or decoding error raises a UnicodeError.

smtpd.SMTPChannel.fqdn

fqdn Holds the fully-qualified domain name of the server as returned by socket.getfqdn().

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

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.