MCPcopy Index your code
hub / github.com/python/cpython / gen_category

Function gen_category

Tools/unicode/mkstringprep.py:4–7  ·  view source on GitHub ↗
(cats)

Source from the content-addressed store, hash-verified

2from unicodedata import ucd_3_2_0 as unicodedata
3
4def gen_category(cats):
5 for i in range(0, 0x110000):
6 if unicodedata.category(chr(i)) in cats:
7 yield(i)
8
9def gen_bidirectional(cats):
10 for i in range(0, 0x110000):

Callers 1

mkstringprep.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…