bz2.BZ2File.peek()

peek([n]) Return buffered data without advancing the file position. At least one byte of data will be returned (unless at EOF). The exact number of bytes returned is unspecified. Note While calling peek() does not change the file position of the BZ2File, it may change the position of the underlying file object (e.g. if the BZ2File was constructed by passing a file object for filename). New in version 3.3.

datetime.time.utcoffset()

time.utcoffset() If tzinfo is None, returns None, else returns self.tzinfo.utcoffset(None), and raises an exception if the latter doesn’t return None or a timedelta object representing a whole number of minutes with magnitude less than one day.

socket.getnameinfo()

socket.getnameinfo(sockaddr, flags) Translate a socket address sockaddr into a 2-tuple (host, port). Depending on the settings of flags, the result can contain a fully-qualified domain name or numeric address representation in host. Similarly, port can contain a string port name or a numeric port number.

nntplib.NNTPError

exception nntplib.NNTPError Derived from the standard exception Exception, this is the base class for all exceptions raised by the nntplib module. Instances of this class have the following attribute: response The response of the server if available, as a str object.

datetime.datetime.time()

datetime.time() Return time object with same hour, minute, second and microsecond. tzinfo is None. See also method timetz().

json.dumps()

json.dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw) Serialize obj to a JSON formatted str using this conversion table. The arguments have the same meaning as in dump(). Note Unlike pickle and marshal, JSON is not a framed protocol, so trying to serialize multiple objects with repeated calls to dump() using the same fp will result in an invalid JSON file. Note Keys in key/value

imaplib.IMAP4.fetch()

IMAP4.fetch(message_set, message_parts) Fetch (parts of) messages. message_parts should be a string of message part names enclosed within parentheses, eg: "(UID BODY[TEXT])". Returned data are tuples of message part envelope and data.

html.parser.HTMLParser.reset()

HTMLParser.reset() Reset the instance. Loses all unprocessed data. This is called implicitly at instantiation time.

ConnectionAbortedError

exception ConnectionAbortedError A subclass of ConnectionError, raised when a connection attempt is aborted by the peer. Corresponds to errno ECONNABORTED.

mailbox.Mailbox.iterkeys()

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