-
Committer:
Jelmer Vernooij
-
Author(s):
Victor Stinner
-
Date:
2020-11-19 12:13:38 UTC
-
mto:
(7490.40.118 work)
-
mto:
This revision was merged to the branch mainline in
revision
7532.
-
Revision ID:
jelmer@jelmer.uk-20201119121338-cxm1x4fj5y3bmbau
Port to Python 3.10
Set static tuple reference count using Py_SET_REFCNT() rather than using
Py_REFCNT().
Define Py_SET_REFCNT() for Python 3.8 and older in python-compat.h.
On Python 3.10, Py_REFCNT() can no longer be used as an l-value to set an
object reference count: Py_SET_REFCNT() must be used for that.
See https://bugs.python.org/issue39573 for more details.
Fix issue #1904868.