ssl.SSLSocket.getpeercert()

SSLSocket.getpeercert(binary_form=False) If there is no certificate for the peer on the other end of the connection, return None. If the SSL handshake hasn’t been done yet, raise ValueError. If the binary_form parameter is False, and a certificate was received from the peer, this method returns a dict instance. If the certificate was not validated, the dict is empty. If the certificate was validated, it returns a dict with several keys, amongst them subject (the principal for which the certi

imaplib.IMAP4.authenticate()

IMAP4.authenticate(mechanism, authobject) Authenticate command — requires response processing. mechanism specifies which authentication mechanism is to be used - it should appear in the instance variable capabilities in the form AUTH=mechanism. authobject must be a callable object: data = authobject(response) It will be called to process server continuation responses; the response argument it is passed will be bytes. It should return bytes data that will be base64 encoded and sent to the se

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.

logging.FileHandler.emit()

emit(record) Outputs the record to the file.

datetime.date.year

date.year Between MINYEAR and MAXYEAR inclusive.

xml.sax.SAXParseException

exception xml.sax.SAXParseException(msg, exception, locator) Subclass of SAXException raised on parse errors. Instances of this class are passed to the methods of the SAX ErrorHandler interface to provide information about the parse error. This class supports the SAX Locator interface as well as the SAXException interface.

Ellipsis

Ellipsis The same as .... Special value used mostly in conjunction with extended slicing syntax for user-defined container data types.

nntplib.NNTP_SSL

class nntplib.NNTP_SSL(host, port=563, user=None, password=None, ssl_context=None, readermode=None, usenetrc=False[, timeout]) Return a new NNTP_SSL object, representing an encrypted connection to the NNTP server running on host host, listening at port port. NNTP_SSL objects have the same methods as NNTP objects. If port is omitted, port 563 (NNTPS) is used. ssl_context is also optional, and is a SSLContext object. Please read Security considerations for best practices. All other parameters

selectors.KqueueSelector.fileno()

fileno() This returns the file descriptor used by the underlying select.kqueue() object.

subprocess.STARTUPINFO.dwFlags

dwFlags A bit field that determines whether certain STARTUPINFO attributes are used when the process creates a window. si = subprocess.STARTUPINFO() si.dwFlags = subprocess.STARTF_USESTDHANDLES | subprocess.STARTF_USESHOWWINDOW