webbrowser.controller.open_new()

controller.open_new(url) Open url in a new window of the browser handled by this controller, if possible, otherwise, open url in the only browser window. Alias open_new().

decimal.Context.is_qnan()

is_qnan(x) Returns True if x is a quiet NaN; otherwise returns False.

trace.Trace.runctx()

runctx(cmd, globals=None, locals=None) Execute the command and gather statistics from the execution with the current tracing parameters, in the defined global and local environments. If not defined, globals and locals default to empty dictionaries.

operator.__lt__()

operator.__lt__(a, b) operator.__le__(a, b) operator.__eq__(a, b) operator.__ne__(a, b) operator.__ge__(a, b) operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equivalent to a < b, le(a, b) is equivalent to a <= b, eq(a, b) is equivalent to a == b, ne(a, b) is equivalent to a != b, gt(a, b) is equivalent to a > b and ge(a, b) is equivalent to a >= b. Note that these functions can return any value, which may or may not be interpretable as a

curses.erasechar()

curses.erasechar() Return the user’s current erase character. Under Unix operating systems this is a property of the controlling tty of the curses program, and is not set by the curses library itself.

ipaddress.IPv4Interface.network

network The network (IPv4Network) this interface belongs to. >>> interface = IPv4Interface('192.0.2.5/24') >>> interface.network IPv4Network('192.0.2.0/24')

ReferenceError

exception ReferenceError This exception is raised when a weak reference proxy, created by the weakref.proxy() function, is used to access an attribute of the referent after it has been garbage collected. For more information on weak references, see the weakref module.

email.policy.EmailPolicy.header_source_parse()

header_source_parse(sourcelines) The implementation of this method is the same as that for the Compat32 policy.

unittest.mock.Mock.call_count

call_count An integer telling you how many times the mock object has been called: >>> mock = Mock(return_value=None) >>> mock.call_count 0 >>> mock() >>> mock() >>> mock.call_count 2

email.policy.Compat32.header_source_parse()

header_source_parse(sourcelines) The name is parsed as everything up to the ‘:‘ and returned unmodified. The value is determined by stripping leading whitespace off the remainder of the first line, joining all subsequent lines together, and stripping any trailing carriage return or linefeed characters.