Other Objects

Data Types

frozenset
Unordered list of unique objects. Immutable.
bytearray
Sequence of integers in the range between 0 and 255. Mutable.
memoryview
View of the object’s raw byte data.

Method Decorators

classmethod
Method that takes class as its first arguments (instead of a class instance).
staticmethod
Method that explicitly does not take the class instance as its first argument.
property
Allows for proper use of getter, setter and deleter methods in Python.

Others

function
A function object.
generator
A generator function object.
code
Compiled Python code.
slice
Slice objects.