FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Enable Py_SETREF/XSETREF on Python 3.16 limited C API (#186) · python/pythoncapi-compat@ebbf075 · GitHub

Repository navigation

Commit ebbf075

Browse files
authored
Enable Py_SETREF/XSETREF on Python 3.16 limited C API (#186)
The two macros have been added to Python 3.16 limited C API: python/cpython@ec14f81
1 parent e05cc66 commit ebbf075

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/test_pythoncapi_compat_cext.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ test_object(PyObject *Py_UNUSED(module), PyObject* Py_UNUSED(ignored))
7575

7676
assert(Py_XNewRef(_Py_NULL) == _Py_NULL);
7777

78-
#ifndef Py_LIMITED_API
78+
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03100000
7979
// Py_SETREF()
8080
PyObject *setref = Py_NewRef(obj);
8181
PyObject *none = Py_None;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL