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 petere
Recipients petere
Date 2021-03-05.22:12:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614982361.61.0.858230879301.issue43412@roundup.psfhosted.org>
In-reply-to
Content
object.h contains an inline function that causes a -Wcast-qual warning from gcc.  Since this file ends up visible in third-party code that includes Python.h, this makes it impossible to use -Wcast-qual in such code.

The problem is the change c5cb077ab3c88394b7ac8ed4e746bd31b53e39f1, which replaced ob->ob_type by Py_TYPE(ob), which seems reasonable by itself, but Py_TYPE casts away the const, so it creates this problem.

This is a regression in Python 3.10.
History
Date User Action Args
2021-03-05 22:12:41peteresetrecipients: + petere
2021-03-05 22:12:41peteresetmessageid: <1614982361.61.0.858230879301.issue43412@roundup.psfhosted.org>
2021-03-05 22:12:41peterelinkissue43412 messages
2021-03-05 22:12:41peterecreate