[issue44378] Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type

2021-06-11 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue44378] Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type

2021-06-11 Thread miss-islington
miss-islington added the comment: New changeset e6d28a1a6ad22125fc3a6df2d611d79aa8d6f67e by Miss Islington (bot) in branch '3.10': bpo-44378: Fix a compiler warning in Py_IS_TYPE() (GH-26644) https://github.com/python/cpython/commit/e6d28a1a6ad22125fc3a6df2d611d79aa8d6f67e -- _

[issue44378] Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type

2021-06-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +25255 pull_request: https://github.com/python/cpython/pull/26668 ___ Python tracker _

[issue44378] Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type

2021-06-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 304dfec8d3c0763734ea8b5fa2af1d9e1ce69ffa by Victor Stinner in branch 'main': bpo-44378: Fix a compiler warning in Py_IS_TYPE() (GH-26644) https://github.com/python/cpython/commit/304dfec8d3c0763734ea8b5fa2af1d9e1ce69ffa -- ___

[issue44378] Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type

2021-06-10 Thread STINNER Victor
STINNER Victor added the comment: Comment from my PR: // bpo-44378: Don't use Py_TYPE() since Py_TYPE() requires a non-const // object. By the way, I wrote a change in Python 3.11 to convert Py_TYPE() macro into a static inline function which accepts a *const* PyObject pointer ("const PyObj

[issue44378] Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type

2021-06-10 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +25230 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26644 ___ Python tracker ___ _

[issue44378] Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type

2021-06-10 Thread STINNER Victor
New submission from STINNER Victor : The following change introduced a compiler warning: commit c5cb077ab3c88394b7ac8ed4e746bd31b53e39f1 Author: Victor Stinner Date: Tue Sep 22 12:42:28 2020 +0200 Py_IS_TYPE() macro uses Py_TYPE() (GH-22341) Steps to Reproduce: 1. dnf install -y python