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