Created originally on Bitbucket by asottile (Anthony Sottile)
Was already merged in Bitbucket before import, marked as merged by the import user
The signature for the c-api uses Py_ssize_t for the unsigned arguments. long
is equivalent to Py_ssize_t
(in fact Py_ssize_t
is a typedef
of long
) in all cases in C, but when integrating with go, C.long
and C.Py_ssize_t
are considered two disparate incompatible types. By using Py_ssize_t
in the function signature, pypy + cpython compatible code can be written.
The specific instance where I'm hitting this is I'm upgrading pypy from 5.3.1 to 5.8.0 and hitting a wall: https://github.com/asottile/dockerfile/issues/5