bdb.Bdb.stop_here()

stop_here(frame) This method checks if the frame is somewhere below botframe in the call stack. botframe is the frame in which debugging started.

xml.parsers.expat.ParserCreate()

xml.parsers.expat.ParserCreate(encoding=None, namespace_separator=None) Creates and returns a new xmlparser object. encoding, if specified, must be a string naming the encoding used by the XML data. Expat doesn’t support as many encodings as Python does, and its repertoire of encodings can’t be extended; it supports UTF-8, UTF-16, ISO-8859-1 (Latin1), and ASCII. If encoding [1] is given it will override the implicit or explicit encoding of the document. Expat can optionally do XML namespace

unittest.TestCase.assertRegex()

assertRegex(text, regex, msg=None) assertNotRegex(text, regex, msg=None) Test that a regex search matches (or does not match) text. In case of failure, the error message will include the pattern and the text (or the pattern and the part of text that unexpectedly matched). regex may be a regular expression object or a string containing a regular expression suitable for use by re.search(). New in version 3.1: under the name assertRegexpMatches. Changed in version 3.2: The method assertRegexp

abc.abstractstaticmethod()

@abc.abstractstaticmethod A subclass of the built-in staticmethod(), indicating an abstract staticmethod. Otherwise it is similar to abstractmethod(). This special case is deprecated, as the staticmethod() decorator is now correctly identified as abstract when applied to an abstract method: class C(metaclass=ABCMeta): @staticmethod @abstractmethod def my_abstract_staticmethod(...): ... New in version 3.2. Deprecated since version 3.3: It is now possible to use staticm

logging.setLogRecordFactory()

logging.setLogRecordFactory(factory) Set a callable which is used to create a LogRecord. Parameters: factory – The factory callable to be used to instantiate a log record. New in version 3.2: This function has been provided, along with getLogRecordFactory(), to allow developers more control over how the LogRecord representing a logging event is constructed. The factory has the following signature: factory(name, level, fn, lno, msg, args, exc_info, func=None, sinfo=None, **kwargs) name:

zlib.decompress()

zlib.decompress(data[, wbits[, bufsize]]) Decompresses the bytes in data, returning a bytes object containing the uncompressed data. The wbits parameter depends on the format of data, and is discussed further below. If bufsize is given, it is used as the initial size of the output buffer. Raises the error exception if any error occurs. The wbits parameter controls the size of the history buffer (or “window size”), and what header and trailer format is expected. It is similar to the parameter

datetime.date.replace()

date.replace(year, month, day) Return a date with the same value, except for those parameters given new values by whichever keyword arguments are specified. For example, if d == date(2002, 12, 31), then d.replace(day=26) == date(2002, 12, 26).

nntplib.decode_header()

nntplib.decode_header(header_str) Decode a header value, un-escaping any escaped non-ASCII characters. header_str must be a str object. The unescaped value is returned. Using this function is recommended to display some headers in a human readable form: >>> decode_header("Some subject") 'Some subject' >>> decode_header("=?ISO-8859-15?Q?D=E9buter_en_Python?=") 'Débuter en Python' >>> decode_header("Re: =?UTF-8?B?cHJvYmzDqG1lIGRlIG1hdHJpY2U=?=") 'Re: problème de matr

tarfile.TarInfo.linkname

TarInfo.linkname Name of the target file name, which is only present in TarInfo objects of type LNKTYPE and SYMTYPE.

imaplib.IMAP4.proxyauth()

IMAP4.proxyauth(user) Assume authentication as user. Allows an authorised administrator to proxy into any user’s mailbox.