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.

classification
Title: PyUnicode_KIND macro does not has specified return type
Type: behavior Stage: resolved
Components: C API Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ammar2, benjamin.peterson, ezio.melotti, lemburg, maxbachmann, miss-islington, petr.viktorin
Priority: normal Keywords: patch

Created on 2021-03-20 01:10 by maxbachmann, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 25724 merged ammar2, 2021-04-29 16:54
PR 27439 merged miss-islington, 2021-07-29 09:10
PR 27440 merged miss-islington, 2021-07-29 09:10
Messages (5)
msg389133 - (view) Author: Max Bachmann (maxbachmann) * Date: 2021-03-20 01:10
The documentation stated, that the PyUnicode_KIND macro has the following interface:
- int PyUnicode_KIND(PyObject *o)
However it actually returns a value of the underlying type of the PyUnicode_Kind enum. This could be e.g. an unsigned int as well.
msg398469 - (view) Author: Petr Viktorin (petr.viktorin) * (Python committer) Date: 2021-07-29 09:10
New changeset 47fd4726a2ce8599cc397ddeae40f70eb471e868 by Ammar Askar in branch 'main':
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724)
https://github.com/python/cpython/commit/47fd4726a2ce8599cc397ddeae40f70eb471e868
msg398472 - (view) Author: Petr Viktorin (petr.viktorin) * (Python committer) Date: 2021-07-29 09:31
New changeset b5bdc0c407d2d0587e591989e390ada9b9709502 by Miss Islington (bot) in branch '3.10':
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) (GH-27439)
https://github.com/python/cpython/commit/b5bdc0c407d2d0587e591989e390ada9b9709502
msg398473 - (view) Author: Petr Viktorin (petr.viktorin) * (Python committer) Date: 2021-07-29 09:33
New changeset 7922546859e746a0f20f53bc80ce0581b72030aa by Miss Islington (bot) in branch '3.9':
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) (GH-27440)
https://github.com/python/cpython/commit/7922546859e746a0f20f53bc80ce0581b72030aa
msg398474 - (view) Author: Petr Viktorin (petr.viktorin) * (Python committer) Date: 2021-07-29 09:33
Thank you for your attention to detail!
History
Date User Action Args
2022-04-11 14:59:43adminsetgithub: 87731
2021-07-29 09:33:38petr.viktorinsetstatus: open -> closed
resolution: fixed
messages: + msg398474

stage: patch review -> resolved
2021-07-29 09:33:20petr.viktorinsetmessages: + msg398473
2021-07-29 09:31:07petr.viktorinsetmessages: + msg398472
2021-07-29 09:10:29petr.viktorinsetnosy: + petr.viktorin
messages: + msg398469
2021-07-29 09:10:19miss-islingtonsetpull_requests: + pull_request25969
2021-07-29 09:10:13miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request25968
2021-04-29 16:54:51ammar2setkeywords: + patch
nosy: + ammar2

pull_requests: + pull_request24416
stage: patch review
2021-03-26 18:47:55terry.reedysetnosy: + lemburg, benjamin.peterson, ezio.melotti
2021-03-20 01:10:53maxbachmanncreate