codecs.StreamRecoder

class codecs.StreamRecoder(stream, encode, decode, Reader, Writer, errors) Creates a StreamRecoder instance which implements a two-way conversion: encode and decode work on the frontend — the data visible to code calling read() and write(), while Reader and Writer work on the backend — the data in stream. You can use these objects to do transparent transcodings from e.g. Latin-1 to UTF-8 and back. The stream argument must be a file-like object. The encode and decode arguments must adhere to

urllib.request.BaseHandler.http_error_nnn()

BaseHandler.http_error_nnn(req, fp, code, msg, hdrs) nnn should be a three-digit HTTP error code. This method is also not defined in BaseHandler, but will be called, if it exists, on an instance of a subclass, when an HTTP error with code nnn occurs. Subclasses should override this method to handle specific HTTP errors. Arguments, return values and exceptions raised should be the same as for http_error_default().

shlex.shlex.push_source()

shlex.push_source(newstream, newfile=None) Push an input source stream onto the input stack. If the filename argument is specified it will later be available for use in error messages. This is the same method used internally by the sourcehook() method.

http.cookiejar.CookiePolicy.hide_cookie2

CookiePolicy.hide_cookie2 Don’t add Cookie2 header to requests (the presence of this header indicates to the server that we understand RFC 2965 cookies).

nntplib.NNTP.quit()

NNTP.quit() Send a QUIT command and close the connection. Once this method has been called, no other methods of the NNTP object should be called.

http.cookiejar.Cookie.rfc2109

Cookie.rfc2109 True if this cookie was received as an RFC 2109 cookie (ie. the cookie arrived in a Set-Cookie header, and the value of the Version cookie-attribute in that header was 1). This attribute is provided because http.cookiejar may ‘downgrade’ RFC 2109 cookies to Netscape cookies, in which case version is 0.

typing.Iterable

class typing.Iterable(Generic[T_co]) A generic version of the collections.abc.Iterable.

UnicodeError.object

object The object the codec was attempting to encode or decode.

inspect.Signature.empty

empty A special class-level marker to specify absence of a return annotation.

logging.Filter.filter()

filter(record) Is the specified record to be logged? Returns zero for no, nonzero for yes. If deemed appropriate, the record may be modified in-place by this method.