SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 33 Python

bpo-39542: Simplify _Py_NewReference() (GH-18332)

* Remove _Py_INC_REFTOTAL and _Py_DEC_REFTOTAL macros: modify
  directly _Py_RefTotal.
* _Py_ForgetReference() is no longer defined if the Py_TRACE_REFS
  macro is not defined.
* Remove _Py_NewReference() implementation from object.c:
  unify the two implementations in object.h inline function.
* Fix Py_TRACE_REFS build: _Py_INC_TPALLOCS() macro has been removed.
V
Victor Stinner committed
49932fec62c616ec88da52642339d83ae719e924
Parent: 24e5ad4
Committed by GitHub <noreply@github.com> on 2/3/2020, 4:55:04 PM