unittest.TestSuite.countTestCases()

countTestCases() Return the number of tests represented by this test object, including all individual tests and sub-suites.

logging.Filter.filter()

filter(record) Is the specified record to be logged? Returns zero for no, nonzero for yes. If deemed appropriate, the record may be modified in-place by this method.

typing.Iterable

class typing.Iterable(Generic[T_co]) A generic version of the collections.abc.Iterable.

inspect.Signature.empty

empty A special class-level marker to specify absence of a return annotation.

UnicodeError.object

object The object the codec was attempting to encode or decode.

nntplib.NNTP.quit()

NNTP.quit() Send a QUIT command and close the connection. Once this method has been called, no other methods of the NNTP object should be called.

http.cookiejar.Cookie.rfc2109

Cookie.rfc2109 True if this cookie was received as an RFC 2109 cookie (ie. the cookie arrived in a Set-Cookie header, and the value of the Version cookie-attribute in that header was 1). This attribute is provided because http.cookiejar may ‘downgrade’ RFC 2109 cookies to Netscape cookies, in which case version is 0.

math.erf()

math.erf(x) Return the error function at x. The erf() function can be used to compute traditional statistical functions such as the cumulative standard normal distribution: def phi(x): 'Cumulative distribution function for the standard normal distribution' return (1.0 + erf(x / sqrt(2.0))) / 2.0 New in version 3.2.

asyncio.Semaphore.locked()

locked() Returns True if semaphore can not be acquired immediately.

test.support.captured_stdout()

test.support.captured_stdout() test.support.captured_stderr() A context managers that temporarily replaces the named stream with io.StringIO object. Example use with output streams: with captured_stdout() as stdout, captured_stderr() as stderr: print("hello") print("error", file=sys.stderr) assert stdout.getvalue() == "hello\n" assert stderr.getvalue() == "error\n" Example use with input stream: with captured_stdin() as stdin: stdin.write('hello\n') stdin.seek(0) # call t