Python Programming - Inheritance - Discussion
Discussion Forum : Inheritance - General Questions (Q.No. 105)
105.
What is the purpose of the
__slots__
attribute in Python classes?
Answer: Option
Explanation:
The
__slots__
attribute is used to restrict the set of attributes that can be assigned to instances, providing memory optimization.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers