1 year ago
#364176
SwarleyMcBarley
Is python super documentation wrong?
The python doc says super can be called with the following args.
- super(type, obj) -> bound super object; requires isinstance(obj, type)
- super(type, type2) -> bound super object; requires issubclass(type2, type)
So the second argument in super has to be either a class to satisfy (1) or a metaclass to satisfy (2)
This code runs eventhough self is neither a class nor a metaclass. So is this a mistake in the doc or am I making a mistake somewhere?
python
documentation
super
0 Answers
Your Answer