MCPcopy Create free account
hub / github.com/apache/arrow / find_new_unicode_codepoints

Function find_new_unicode_codepoints

python/pyarrow/tests/test_compute.py:1032–1040  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1030# implementation.
1031@lru_cache()
1032def find_new_unicode_codepoints():
1033 new = set()
1034 characters = [chr(c) for c in range(0x80, 0x11000)
1035 if not (0xD800 <= c < 0xE000)]
1036 is_printable = pc.utf8_is_printable(pa.array(characters)).to_pylist()
1037 for i, c in enumerate(characters):
1038 if is_printable[i] != c.isprintable():
1039 new.add(ord(c))
1040 return new
1041
1042
1043# Python claims there are not alpha, not sure why, they are in

Callers 1

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected