xml.sax.xmlreader.XMLReader.setErrorHandler()

XMLReader.setErrorHandler(handler) Set the current error handler. If no ErrorHandler is set, errors will be raised as exceptions, and warnings will be printed.

parser.compilest()

parser.compilest(st, filename='') The Python byte compiler can be invoked on an ST object to produce code objects which can be used as part of a call to the built-in exec() or eval() functions. This function provides the interface to the compiler, passing the internal parse tree from st to the parser, using the source file name specified by the filename parameter. The default value supplied for filename indicates that the source was an ST object. Compiling an ST object may result in exceptio

ipaddress.IPv6Address.ipv4_mapped

ipv4_mapped For addresses that appear to be IPv4 mapped addresses (starting with ::FFFF/96), this property will report the embedded IPv4 address. For any other address, this property will be None.

asyncio.Event.clear()

clear() Reset the internal flag to false. Subsequently, coroutines calling wait() will block until set() is called to set the internal flag to true again.

xml.etree.ElementTree.QName

class xml.etree.ElementTree.QName(text_or_uri, tag=None) QName wrapper. This can be used to wrap a QName attribute value, in order to get proper namespace handling on output. text_or_uri is a string containing the QName value, in the form {uri}local, or, if the tag argument is given, the URI part of a QName. If tag is given, the first argument is interpreted as a URI, and this argument is interpreted as a local name. QName instances are opaque.

gettext.bind_textdomain_codeset()

gettext.bind_textdomain_codeset(domain, codeset=None) Bind the domain to codeset, changing the encoding of strings returned by the gettext() family of functions. If codeset is omitted, then the current binding is returned.

xml.sax.parseString()

xml.sax.parseString(string, handler, error_handler=handler.ErrorHandler()) Similar to parse(), but parses from a buffer string received as a parameter. string must be a str instance or a bytes-like object. Changed in version 3.5: Added support of str instances.

aifc.aifc.setcomptype()

aifc.setcomptype(type, name) Specify the compression type. If not specified, the audio data will not be compressed. In AIFF files, compression is not possible. The name parameter should be a human-readable description of the compression type as a bytes array, the type parameter should be a bytes array of length 4. Currently the following compression types are supported: b'NONE', b'ULAW', b'ALAW', b'G722'.

http.client.UnimplementedFileMode

exception http.client.UnimplementedFileMode A subclass of HTTPException.

contextlib.ExitStack.push()

push(exit) Adds a context manager’s __exit__() method to the callback stack. As __enter__ is not invoked, this method can be used to cover part of an __enter__() implementation with a context manager’s own __exit__() method. If passed an object that is not a context manager, this method assumes it is a callback with the same signature as a context manager’s __exit__() method and adds it directly to the callback stack. By returning true values, these callbacks can suppress exceptions the same