This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 vstinner
收信人 vstinner
日期 2020-02-07.00:19:37
SpamBayes Score -1.0
Marked as misclassified
Message-id <1581034777.27.0.937045301344.issue39573@roundup.psfhosted.org>
In-reply-to
内容
In the limited C API, Py_REFCNT() should be converted to:

static inline Py_ssize_t _Py_REFCNT(const PyObject *ob)
{ return ob->ob_refcnt; }
#define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST(ob))

It would enforce the usage of newly added Py_SET_REFCNT() (PR 18389) and advertise that the object is not modified (const).

That would only be the first step towards a really opaque Py_REFCNT() function.
历史
日期 用户 动作 参数
2020-02-07 00:19:37vstinner修改recipients: + vstinner
2020-02-07 00:19:37vstinner修改messageid: <1581034777.27.0.937045301344.issue39573@roundup.psfhosted.org>
2020-02-07 00:19:37vstinner链接issue39573 messages
2020-02-07 00:19:37vstinner创建