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 petdance
Recipients petdance, serhiy.storchaka
Date 2020-02-10.15:18:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581347884.0.0.261530296563.issue39591@roundup.psfhosted.org>
In-reply-to
Content
> Yes, Py_INCREF and Py_DECREF change the type, and therefore constness.

Understood. The changes that I have proposed are not to objects that get sent through Py_INCREF/Py_DECREF.  If they did, -Wcast-qual would have caught it.  -Wcast-qual catches if you cast, say, a const char * to a char *.

Let's let this stay closed and I'll resubmit with a clearer ticket & PR.
History
Date User Action Args
2020-02-10 15:18:04petdancesetrecipients: + petdance, serhiy.storchaka
2020-02-10 15:18:03petdancesetmessageid: <1581347884.0.0.261530296563.issue39591@roundup.psfhosted.org>
2020-02-10 15:18:03petdancelinkissue39591 messages
2020-02-10 15:18:03petdancecreate