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.
Created on 2021年03月05日 22:12 by petere, last changed 2022年04月11日 14:59 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg388167 - (view) | Author: Peter Eisentraut (petere) * | Date: 2021年03月05日 22:12 | |
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. |
|||
| msg388560 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2021年03月12日 22:12 | |
Victor, the apparent 3.10 regression is from your commit. |
|||
| msg388607 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2021年03月13日 11:29 | |
> object.h contains an inline function that causes a -Wcast-qual warning from gcc. Which function? Can you please provide the warning? Do you want to propose a fix? |
|||
| msg396793 - (view) | Author: Leif Walsh (leif.walsh) | Date: 2021年06月30日 19:20 | |
Duplicated by https://bugs.python.org/issue44378, which has a fix merged. |
|||
| msg396803 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2021年07月01日 00:05 | |
> Duplicated by https://bugs.python.org/issue44378, which has a fix merged. Right. I close the issue as a duplicate. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:59:42 | admin | set | github: 87578 |
| 2021年07月01日 00:05:49 | vstinner | set | status: open -> closed superseder: Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type messages: + msg396803 resolution: duplicate stage: resolved |
| 2021年06月30日 19:20:08 | leif.walsh | set | nosy:
+ leif.walsh messages: + msg396793 |
| 2021年03月13日 11:29:39 | vstinner | set | messages: + msg388607 |
| 2021年03月12日 22:12:53 | terry.reedy | set | nosy:
+ terry.reedy, vstinner messages: + msg388560 |
| 2021年03月05日 22:12:41 | petere | create | |