GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — [DRAFT] gh-105059: In C++, Py_INCREF() uses a function call by vstinner · Pull Request #105764 · python/cpython Conversation
|
|
In the issue #105387, I modified Py_INCREF() and Py_DECREF() to implement them as opaque function calls in the limited C API version 3.12 and newer (and when Python is built in debug mode): commit b542972 We can consider to do something similar in C++ and/or in C without anonymous union (ex: ISO C89). This PR implements this idea for C++: in C++, Well, I wrote this PR to show that we now have this technical solution, but it has a cost on performance. I don't know if it's acceptable for Python 3.12. Alternatives are discussed in issue #105059 and PR #105275. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
C compiler configured for C99 in pedantic mode also emits a compiler warning (which may be treated as error) in Include/object.h because of the PyObject.ob_refcnt anonymous union: #105059 (comment) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Abandoned in favor of PR #105767. C++ is unaffected by the issue: #105059 (comment) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.