Conversation
Test these macros with the limited C API in _testlimitedcapi and test_cext. Move also other tests (refcount, Py_CLEAR, etc.) to _testlimitedcapi.
|
Note: |
Documentation build overview
|
|
Could you add them to |
picnixz
left a comment
There was a problem hiding this comment.
If this only moving code, then this LGTM.
Oh right... I totally forgot about that. It's for the docs rendering right? |
Sure, done. I forgot that we also put macros in stable_abi.toml. I also added Py_CLEAR(). It seems like Py_CLEAR() was added to Python 2.4 (so it's available since limited C API 3.2). |
I learned recently that abi3audit uses the toml table as input for a codegen script that generates the abi3audit implementation. I'd also like to use it in PyO3 for static checks. So downstream appreciates it being accurate and updated. |
Test these macros with the limited C API in _testlimitedcapi and test_cext.
Move also other tests (refcount, Py_CLEAR, etc.) to _testlimitedcapi.