Practice
Learn
← Quit
0 / 0 correct
Python
Medium
1 of 40
What does defining __slots__ on a class do?
A
Declares fixed attributes and removes the per-instance __dict__, saving memory and speeding attribute access
B
Makes the class thread-safe
C
Enables multiple inheritance
D
Makes instances immutable