Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
bools are integers, specifically they are a subclass of int: py> isinstance(True, int) True py> issubclass(bool, int) True so the behaviour is correct. ---------- nosy: +steven.daprano resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37818> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com