Why does super(bool) give None
Random832
random832 at fastmail.com
Fri Apr 24 14:18:41 EDT 2020
On Fri, Apr 24, 2020, at 02:10, Cecil Westerhof wrote:
> issubclass(bool, int) gives True
> but
> super(bool) gives <super: bool, None>
>
> Do I not understand the meaning of super, or is this inconsistent?
I've never heard of a one-argument form for super, but I just tried something and now I'm confused about the two-argument form
>>> super(bool, True).__str__()
'True'
I expected '1' - does anyone know why this happens?
More information about the Python-list
mailing list