blob: 69229856fef8443fd3e94144f94b6b4de611d476 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# ticket: t505
cimport cython
cdef extern from "Python.h":
cdef cython.unicode PyUnicode_DecodeUTF8(char* s, Py_ssize_t size, char* errors)
def test_capi():
"""
>>> print(test_capi())
abc
"""
return PyUnicode_DecodeUTF8("abc", 3, NULL)
|