Victor Stinner
Victor Stinner
This issue is a duplicate of https://github.com/python/cpython/issues/122273 which was fixed by https://github.com/python/cpython/commit/3c7a90a83146dc6e55f6f9ecd9af0bf9682f98a6.
I close the issue.
[PEP 697 – Limited C API for Extending Opaque Types](https://peps.python.org/pep-0697/) was implemented in Python 3.12. Can't you use this API for your needs?
cc @encukou
@encukou: > What do you expect me to say here? Is there any API or can we design an API fitting JPypy design/use case? I don't know well PEP 697,...
@Thrameos: It would be great if you could copy/summarize what you wrote (with the nice schema) in a message to https://discuss.python.org/c/core-dev/23
> 32 bit PyInt_AsInt32 PyInt_FromInt32 I created https://github.com/python/cpython/pull/120390 for that.
>We need a more consistent API for converting from Python integers to C integers and back again. > We should support both 32 bit and word size C integers. 32...
> We want to query its sign: > int PyInt_Sign(); `PyLong_GetSign()` was added to Python 3.14: https://docs.python.org/dev/c-api/long.html#c.PyLong_GetSign > int PyInt_IsNegative(); > int PyInt_IsPositive(); > int PyInt_IsZero(); There is an open...
Why calling _PyImport_AcquireLock() in uwsgi_python_pre_uwsgi_fork(), instead of PyOS_BeforeFork()? By the way, I'm not sure that it's safe to call PyOS_AfterFork_Child() in uwsgi_python_post_uwsgi_fork() without calling PyOS_BeforeFork().