Is there a single root type that all other types inherit from in python? From doing basic trial-and-error, it seems this may be the type called type
:
>>> None.__class__
<class 'NoneType'>
>>> None.__class__.__class__
<class 'type'>
>>> None.__class__.__class__.__class__
<class 'type'>
And also it seems like that is the only type for which the class of it equals itself.
Are there any other types that are more basic than the type
type? If not, why is type
the most basic type in python?