Without that, at least 33 C files has to be modified to add include pycore_object.h: see my first attempt, PR #10272. I prefer to have smaller PR, easier to review. The automatic include can be removed later. |
|
Note for myself: PR #10275 has to be updated if this PR is merged before. |
* Create Include/internal/pycore_object.h * Move _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() macros to pycore_object.h * Remove _PyGC_generation0: replaced with _PyRuntime.gc.generation0 * Python.h now automatically includes pycore_object.h
|
PR #10507 has been merged: I rewrote and rebased this change on top of master. |
|
I don't understand why compilation fails on AppVeyor: |
|
I merged PR #10640 instead. |
pycore_object.h
in _queuemodule.c. The file is compiled without Py_BUILD_CORE.
https://bugs.python.org/issue35081