super, object and type?

ssecorp circularfunc at
Tue Aug 12 19:14:05 CEST 2008

>>> super(object, type)
<super: <class 'object'>, <type object>>
>>> super(type, object)
<super: <class 'type'>, <type object>>

how can both work?

they can't both be the superclass of each other right? or is it some
sort of mutually recursive definition?

>>> help(object)
Help on class object in module __builtin__:

class object
 |  The most base type

>>> help(type)
Help on class type in module __builtin__:

class type(object)
 |  type(object) -> the object's type
 |  type(name, bases, dict) -> a new type

More information about the Python-list mailing list