Skip to content

Commit 28e5f35

Browse files
committed
expose two more unicodedata functions
1 parent c0e46f9 commit 28e5f35

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

graalpython/lib-graalpython/unicodedata.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
c_unicodedata_module = None
4343

44+
4445
@__builtin__
4546
def __get_c_unicodedata():
4647
if c_unicodedata_module is None:
@@ -52,3 +53,12 @@ def __get_c_unicodedata():
5253

5354
east_asian_width = lambda arg: __get_c_unicodedata().east_asian_width(arg)
5455

56+
57+
@__builtin__
58+
def lookup(name):
59+
return __get_c_unicodedata().lookup(name)
60+
61+
62+
@__builtin__
63+
def category(char):
64+
return __get_c_unicodedata().category(char)

0 commit comments

Comments
 (0)