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.

Author vstinner
Recipients Michael.Felt, corona10, erlendaasland, miss-islington, rhettinger, ronaldoussoren, shihai1991, vstinner
Date 2022-01-28.14:19:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643379560.28.0.902117346463.issue40170@roundup.psfhosted.org>
In-reply-to
Content
Changes already done:

* Macros converted to regular functions:
 
  * PyObject_GET_WEAKREFS_LISTPTR(); add internal inline _PyObject_GET_WEAKREFS_LISTPTR()
  * PyType_SUPPORTS_WEAKREFS(); add internal inline _PyType_SUPPORTS_WEAKREFS()
  * PyObject_CheckBuffer(); no fast internal API
  * PyObject_IS_GC(); no fast internal API
  * PyDescr_IsData(); no fast internal API

* Always implemented as a function, remove macro optimization in the non-limited API:

  * PyIter_Check(); no fast internal API
  * PyIndex_Check(); add internal inline _PyIndex_Check()
  * PyExceptionClass_Name(); no fast internal API

* Py_TRASHCAN_BEGIN() macro now calls _PyTrash_cond() function: no longer read directly tp_dealloc member
* PyObject_NEW() macro becomes an alias to PyObject_New()
* Remove PyHeapType_GET_MEMBERS() (move it to the internal C API)

PyType_HasFeature() is left unchanged since the change caused performance issue on macOS, whereas Python is not built with LTO.
History
Date User Action Args
2022-01-28 14:19:20vstinnersetrecipients: + vstinner, rhettinger, ronaldoussoren, Michael.Felt, corona10, miss-islington, shihai1991, erlendaasland
2022-01-28 14:19:20vstinnersetmessageid: <1643379560.28.0.902117346463.issue40170@roundup.psfhosted.org>
2022-01-28 14:19:20vstinnerlinkissue40170 messages
2022-01-28 14:19:20vstinnercreate