On 2021-08-22 17:36, Thomas Grainger wrote:
> bool((len(collection) == 0) is True) == True and issubclass(True, bool)
>
'True' is a reserved word, so you don't need to check it.
However, 'bool' might have been overridden, so:
__builtins__.bool((len(collection) == 0) is True) == True
Come to think of it, 'len' might have been overridden too, so:
__builtins__.bool((__builtins__.len(collection) == 0) is True) == True