I am searching use of deprecated API and I found PyUnicode_FromUnicode is used in spaCy.
I confirmed Cython 0.29.20 produce same code.
/* "spacy/pipeline/pipes.pyx":1446
* '', '', '', '', '', '', '', '', '', '', '', '', '',
* '', '', '', '', '', '', '', '', '', '', '', '', '',
* '', '', '', '', '', '', '', '', '', '', '', '', # <<<<<<<<<<<<<<
* '', '', '', '', '', '', '', '', '', '', '', '', '',
* '', '', '', '', '', '', '', '', '', '', '', '', '',
*/
__pyx_ustring__374 = PyUnicode_FromUnicode(__pyx_k__375, (sizeof(__pyx_k__375) / sizeof(Py_UNICODE))-1); if (unlikely(!__pyx_ustring__374)) __PYX_ERR(0, 144
if (__Pyx_PyUnicode_READY(__pyx_ustring__374) < 0) __PYX_ERR(0, 1446, __pyx_L1_error)
__pyx_ustring__376 = PyUnicode_FromUnicode(__pyx_k__377, (sizeof(__pyx_k__377) / sizeof(Py_UNICODE))-1); if (unlikely(!__pyx_ustring__376)) __PYX_ERR(0, 144
if (__Pyx_PyUnicode_READY(__pyx_ustring__376) < 0) __PYX_ERR(0, 1446, __pyx_L1_error)
__pyx_ustring__378 = PyUnicode_FromUnicode(__pyx_k__379, (sizeof(__pyx_k__379) / sizeof(Py_UNICODE))-1); if (unlikely(!__pyx_ustring__378)) __PYX_ERR(0, 144
if (__Pyx_PyUnicode_READY(__pyx_ustring__378) < 0) __PYX_ERR(0, 1446, __pyx_L1_error)
__pyx_ustring__380 = PyUnicode_FromUnicode(__pyx_k__381, (sizeof(__pyx_k__381) / sizeof(Py_UNICODE))-1); if (unlikely(!__pyx_ustring__380)) __PYX_ERR(0, 144
if (__Pyx_PyUnicode_READY(__pyx_ustring__380) < 0) __PYX_ERR(0, 1446, __pyx_L1_error)
__pyx_ustring__382 = PyUnicode_FromUnicode(__pyx_k__383, (sizeof(__pyx_k__383) / sizeof(Py_UNICODE))-1); if (unlikely(!__pyx_ustring__382)) __PYX_ERR(0, 144
if (__Pyx_PyUnicode_READY(__pyx_ustring__382) < 0) __PYX_ERR(0, 1446, __pyx_L1_error)
__pyx_ustring__384 = PyUnicode_FromUnicode(__pyx_k__385, (sizeof(__pyx_k__385) / sizeof(Py_UNICODE))-1); if (unlikely(!__pyx_ustring__384)) __PYX_ERR(0, 144
if (__Pyx_PyUnicode_READY(__pyx_ustring__384) < 0) __PYX_ERR(0, 1446, __pyx_L1_error)
__pyx_ustring__386 = PyUnicode_FromUnicode(__pyx_k__387, (sizeof(__pyx_k__387) / sizeof(Py_UNICODE))-1); if (unlikely(!__pyx_ustring__386)) __PYX_ERR(0, 144
if (__Pyx_PyUnicode_READY(__pyx_ustring__386) < 0) __PYX_ERR(0, 1446, __pyx_L1_error)
But I can not find how Cython produce this code block.
I'm sorry if this code block is not generated by Cython.
I am searching use of deprecated API and I found PyUnicode_FromUnicode is used in spaCy.
I confirmed Cython 0.29.20 produce same code.
Cython source:
https://github.com/explosion/spaCy/blob/bab30e4ad2ad35d7133b7f8027a3558a02e018e4/spacy/pipeline/pipes.pyx#L1441-L1451
Generated code:
But I can not find how Cython produce this code block.
I'm sorry if this code block is not generated by Cython.