http.cookiejar.Cookie.domain_specified

Cookie.domain_specified True if a domain was explicitly specified by the server.

gc.get_referrers()

gc.get_referrers(*objs) Return the list of objects that directly refer to any of objs. This function will only locate those containers which support garbage collection; extension types which do refer to other objects but do not support garbage collection will not be found. Note that objects which have already been dereferenced, but which live in cycles and have not yet been collected by the garbage collector can be listed among the resulting referrers. To get only currently live objects, cal

curses.flushinp()

curses.flushinp() Flush all input buffers. This throws away any typeahead that has been typed by the user and has not yet been processed by the program.

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.