def is_loc_alnum(code): return code < 256 and isalnum(code)
def fn(): assert isupper(ord("A")) assert islower(ord("a")) assert not isalpha(ord(" ")) assert isalnum(ord("1")) assert tolower(ord("A")) == ord("a")
def test_lower_upper(self): assert isupper(ord("A")) assert islower(ord("a")) assert not isalpha(ord(" ")) assert isalnum(ord("1")) assert tolower(ord("A")) == ord("a")