+ 1

Python class with no methods by default

Is it possible in Python to create a class that by default has no methods and attributes at all? If so, please tell me.

26th Aug 2021, 7:10 AM
Operand
Operand - avatar
1 Answer
+ 2
Operand It's so weird that classes in Python are instances of the 'type' class, thus, inheriting all the properties like '__class__' and all. I don't think that your aim can be achieved with Python. P.S. Needs clarification
26th Aug 2021, 7:19 AM
Calvin Thomas
Calvin Thomas - avatar