Skip to content

Commit 90224f6

Browse files
committed
Implement C API function 'PyUnicode_New'.
1 parent 68c679b commit 90224f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graalpython/com.oracle.graal.python.cext/src/unicodeobject.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,3 +341,7 @@ PyObject* PyUnicode_Substring(PyObject *self, Py_ssize_t start, Py_ssize_t end)
341341
PyObject* PyUnicode_Join(PyObject *separator, PyObject *seq) {
342342
return UPCALL_CEXT_O("PyUnicode_Join", native_to_java(separator), native_to_java(seq));
343343
}
344+
345+
PyObject* PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar) {
346+
return to_sulong(polyglot_from_string("", "ascii"));
347+
}

0 commit comments

Comments
 (0)