B.isupper() -> bool Return True if all cased characters in B are uppercase and there is at least one cased character in B, False otherwise.
>>> b'HELLO WORLD'.isupper() True >>> b'Hello world'.isupper() False
builtins/bytearray.isupper
bytearray.isupper