[issue36465] No longer enable Py_TRACE_REFS by default in debug build

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: I started a thread on python-dev to discuss this issue: "[Python-Dev] Use C extensions compiled in release mode on a Python compiled in debug mode" https://mail.python.org/pipermail/python-dev/2019-April/157178.html It's a follow-up of my previous thread: "[P

[issue36465] No longer enable Py_TRACE_REFS by default in debug build

2019-04-23 Thread STINNER Victor
STINNER Victor added the comment: Since my goal here is to support a C extension compiled in release mode on a Python compiled in debug mode, Py_TRACE_REFS should be a new separated ABI since it modify Py_INCREF/Py_DECREF. Maybe a new configure option should be added to opt-in for Py_TRACE_R

[issue36465] No longer enable Py_TRACE_REFS by default in debug build

2019-03-28 Thread STINNER Victor
STINNER Victor added the comment: PR 12615 changes Py_DEBUG to no longer imply Py_TRACE_REFS. IMHO it's a more reasonable approach. I'm not sure if it's enough to magically get exactly the same ABI than Python built in release mode. -- ___ Python

[issue36465] No longer enable Py_TRACE_REFS by default in debug build

2019-03-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12551 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36465] No longer enable Py_TRACE_REFS by default in debug build

2019-03-28 Thread STINNER Victor
STINNER Victor added the comment: > Another more radical idea is to completely remove Py_TRACE_REFS special build. I wrote PR 12614 to implement this idea. I wrote it to see which code depends on it: commit 63509498761a0e7f72585a8cd7df325ea2abd1b2 (HEAD -> remove_trace_refs, origin/remove_t

[issue36465] No longer enable Py_TRACE_REFS by default in debug build

2019-03-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12550 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36465] No longer enable Py_TRACE_REFS by default in debug build

2019-03-28 Thread STINNER Victor
New submission from STINNER Victor : When Python is built in debug mode, PyObject gets 2 new fields: _ob_prev and _ob_next. These fields change the offset of following fields in the PyObject structure and so breaks the ABI. I propose to modify the debug build (Py_DEBUG) to not imply Py_TRACE_