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

Function find_new_unicode_codepoints

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

Source from the content-addressed store, hash-verified

1035# implementation.
1036@lru_cache()
1037def find_new_unicode_codepoints():
1038 new = set()
1039 characters = [chr(c) for c in range(0x80, 0x11000)
1040 if not (0xD800 <= c < 0xE000)]
1041 is_printable = pc.utf8_is_printable(pa.array(characters)).to_pylist()
1042 for i, c in enumerate(characters):
1043 if is_printable[i] != c.isprintable():
1044 new.add(ord(c))
1045 return new
1046
1047
1048# 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