Python Programming - Functions - Discussion
Discussion Forum : Functions - General Questions (Q.No. 67)
67.
What does the
__slots__
attribute do in a Python class?
Answer: Option
Explanation:
The
__slots__
attribute in Python is used to restrict the creation of new attributes in class instances.
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