In one of my past questions, the responder tells me that it is better to inherit from an object when the class you want to create is like βfrom scratchβ that you don't need to inherit from another class.
For example, as I always do:
class my_class: "a class inherits from nothing" def __init__(self): pass
What did he or she suggest:
class suggested_class(object): "a class inherits from object type" def __init__(self): pass
I am confused by the advantages or disadvantages of both approaches.
Question 1:
So what is your idea, inherit from an object type or nothing?
xiaohan2012
source share