locale.strxfrm()

locale.strxfrm(string) Transforms a string to one that can be used in locale-aware comparisons. For example, strxfrm(s1) < strxfrm(s2) is equivalent to strcoll(s1, s2) < 0. This function can be used when the same string is compared repeatedly, e.g. when collating a sequence of strings.

decimal.Decimal.is_nan()

is_nan() Return True if the argument is a (quiet or signaling) NaN and False otherwise.

tty.setcbreak()

tty.setcbreak(fd, when=termios.TCSAFLUSH) Change the mode of file descriptor fd to cbreak. If when is omitted, it defaults to termios.TCSAFLUSH, and is passed to termios.tcsetattr().

gzip.decompress()

gzip.decompress(data) Decompress the data, returning a bytes object containing the uncompressed data. New in version 3.2.

ipaddress.IPv4Address.max_prefixlen

max_prefixlen The total number of bits in the address representation for this version: 32 for IPv4, 128 for IPv6. The prefix defines the number of leading bits in an address that are compared to determine whether or not an address is part of a network.

unittest.TestCase.assertGreater()

assertGreater(first, second, msg=None) assertGreaterEqual(first, second, msg=None) assertLess(first, second, msg=None) assertLessEqual(first, second, msg=None) Test that first is respectively >, >=, < or <= than second depending on the method name. If not, the test will fail: >>> self.assertGreaterEqual(3, 4) AssertionError: "3" unexpectedly not greater than or equal to "4" New in version 3.1.

unittest.TestCase.assertMultiLineEqual()

assertMultiLineEqual(first, second, msg=None) Test that the multiline string first is equal to the string second. When not equal a diff of the two strings highlighting the differences will be included in the error message. This method is used by default when comparing strings with assertEqual(). New in version 3.1.

unittest.TestLoader.loadTestsFromModule()

loadTestsFromModule(module, pattern=None) Return a suite of all tests cases contained in the given module. This method searches module for classes derived from TestCase and creates an instance of the class for each test method defined for the class. Note While using a hierarchy of TestCase-derived classes can be convenient in sharing fixtures and helper functions, defining test methods on base classes that are not intended to be instantiated directly does not play well with this method. Doi

xmlrpc.server.SimpleXMLRPCRequestHandler

class xmlrpc.server.SimpleXMLRPCRequestHandler Create a new request handler instance. This request handler supports POST requests and modifies logging so that the logRequests parameter to the SimpleXMLRPCServer constructor parameter is honored.

doctest.UnexpectedException

exception doctest.UnexpectedException(test, example, exc_info) An exception raised by DocTestRunner to signal that a doctest example raised an unexpected exception. The constructor arguments are used to initialize the attributes of the same names.