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?
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to