Re: [Cython] Return types of declarations in Includes/cpython

2017-11-23 Thread Stefan Behnel
Am 23. November 2017 15:32:13 MEZ schrieb Jeroen Demeyer: >Many Python/C API functions create objects of a known type. For >example, >PyUnicode_Decode() always returns a "unicode" object. In some cases, >this return type is reflected in the declaration in >Cython/Includes/cpython, in other cases

[Cython] Return types of declarations in Includes/cpython

2017-11-23 Thread Jeroen Demeyer
Many Python/C API functions create objects of a known type. For example, PyUnicode_Decode() always returns a "unicode" object. In some cases, this return type is reflected in the declaration in Cython/Includes/cpython, in other cases (such as PyUnicodeDecode() that I just mentioned) not. What