types.GeneratorType

types.GeneratorType The type of generator-iterator objects, created by generator functions.

urllib.parse.urljoin()

urllib.parse.urljoin(base, url, allow_fragments=True) Construct a full (“absolute”) URL by combining a “base URL” (base) with another URL (url). Informally, this uses components of the base URL, in particular the addressing scheme, the network location and (part of) the path, to provide missing components in the relative URL. For example: >>> from urllib.parse import urljoin >>> urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html') 'http://www.cwi.nl/%7Eguido/FAQ.ht

OSError.errno

errno A numeric error code from the C variable errno.

asyncio.Server.close()

close() Stop serving: close listening sockets and set the sockets attribute to None. The sockets that represent existing incoming client connections are left open. The server is closed asynchronously, use the wait_closed() coroutine to wait until the server is closed.

email.message.Message.get_content_maintype()

get_content_maintype() Return the message’s main content type. This is the maintype part of the string returned by get_content_type().

json.JSONDecodeError.lineno

lineno The line corresponding to pos.

asyncio.AbstractEventLoop.set_exception_handler()

AbstractEventLoop.set_exception_handler(handler) Set handler as the new event loop exception handler. If handler is None, the default exception handler will be set. If handler is a callable object, it should have a matching signature to (loop, context), where loop will be a reference to the active event loop, context will be a dict object (see call_exception_handler() documentation for details about context).

mailbox.Mailbox.keys()

keys() Return an iterator over all keys if called as iterkeys() or return a list of keys if called as keys().

sys.setswitchinterval()

sys.setswitchinterval(interval) Set the interpreter’s thread switch interval (in seconds). This floating-point value determines the ideal duration of the “timeslices” allocated to concurrently running Python threads. Please note that the actual value can be higher, especially if long-running internal functions or methods are used. Also, which thread becomes scheduled at the end of the interval is the operating system’s decision. The interpreter doesn’t have its own scheduler. New in version

email.parser.BytesParser.parsebytes()

parsebytes(bytes, headersonly=False) Similar to the parse() method, except it takes a byte string object instead of a file-like object. Calling this method on a byte string is exactly equivalent to wrapping text in a BytesIO instance first and calling parse(). Optional headersonly is as with the parse() method.