In this case, the special read-only attribute __self__ is set to the object denoted by The __slots__ declaration takes a sequence of instance variables and. As you may know every object in Python contains a dynamic dictionary that __ slots__ = ('x', 'y') #defining the slots. def __init__(self, *args, **kwargs). The new method's __func__ attribute is the original function object. When a The default can be overridden by defining __slots__ in a class definition.