New submission from STINNER Victor <vstin...@redhat.com>:

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_REFS 
anymore. Antoine Pitrou proposed this idea when the C API was discussed to get 
a stable ABI.

Another more radical idea is to completely remove Py_TRACE_REFS special build.

----------
components: Build
messages: 339079
nosy: pitrou, vstinner
priority: normal
severity: normal
status: open
title: No longer enable Py_TRACE_REFS by default in debug build
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36465>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to