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 arhadthedev, erlendaasland, gdr@garethrees.org, lemburg, rhettinger, vstinner
Date 2022-01-26.16:37:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643215039.12.0.526751645363.issue45476@roundup.psfhosted.org>
In-reply-to
Content
> In the PyPI top 5000, I found two projects using PyDescr_TYPE() and PyDescr_NAME() as l-value: M2Crypto and mecab-python3. In both cases, it was code generated by SWIG

I created bpo-46538 "[C API] Make the PyDescrObject structure opaque" to handle PyDescr_NAME() and PyDescr_TYPE() macros. But IMO it's not really worth it to make the PyDescrObject structure opaque. It's just too much work, whereas PyDescrObject is not performance sensitive. It's ok to continue exposing this structure in public for now.

I will exclude PyDescr_NAME() and PyDescr_TYPE() from the PEP 674.
History
Date User Action Args
2022-01-26 16:37:19vstinnersetrecipients: + vstinner, lemburg, rhettinger, gdr@garethrees.org, erlendaasland, arhadthedev
2022-01-26 16:37:19vstinnersetmessageid: <1643215039.12.0.526751645363.issue45476@roundup.psfhosted.org>
2022-01-26 16:37:19vstinnerlinkissue45476 messages
2022-01-26 16:37:19vstinnercreate