memoryview

class memoryview(obj) Create a memoryview that references obj. obj must support the buffer protocol. Built-in objects that support the buffer protocol include bytes and bytearray. A memoryview has the notion of an element, which is the atomic memory unit handled by the originating object obj. For many simple types such as bytes and bytearray, an element is a single byte, but other types such as array.array may have bigger elements. len(view) is equal to the length of tolist. If view.ndim = 0

MemoryError

exception MemoryError Raised when an operation runs out of memory but the situation may still be rescued (by deleting some objects). The associated value is a string indicating what kind of (internal) operation ran out of memory. Note that because of the underlying memory management architecture (C’s malloc() function), the interpreter may not always be able to completely recover from this situation; it nevertheless raises an exception so that a stack traceback can be printed, in case a run-

max()

max(iterable, *[, key, default]) max(arg1, arg2, *args[, key]) Return the largest item in an iterable or the largest of two or more arguments. If one positional argument is provided, it should be an iterable. The largest item in the iterable is returned. If two or more positional arguments are provided, the largest of the positional arguments is returned. There are two optional keyword-only arguments. The key argument specifies a one-argument ordering function like that used for list.sort().

math.trunc()

math.trunc(x) Return the Real value x truncated to an Integral (usually an integer). Delegates to x.__trunc__().

math.tanh()

math.tanh(x) Return the hyperbolic tangent of x.

math.tan()

math.tan(x) Return the tangent of x radians.

math.sqrt()

math.sqrt(x) Return the square root of x.

math.sinh()

math.sinh(x) Return the hyperbolic sine of x.

math.sin()

math.sin(x) Return the sine of x radians.

math.radians()

math.radians(x) Convert angle x from degrees to radians.