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: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types
Type: enhancement Stage: resolved
Components: Extension Modules, Interpreter Core Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: serhiy.storchaka
Priority: normal Keywords:

Created on 2017-03-21 06:19 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 748 merged serhiy.storchaka, 2017-03-21 06:24
Messages (2)
msg289916 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-03-21 06:19
Proposed patch replaces Py_SIZE with PyXXX_GET_SIZE macros for concrete types. For details see https://mail.python.org/pipermail/python-dev/2017-March/147628.html .

Py_SIZE still is used in concrete type implementations and when set the new size: `Py_SIZE(obj) = newsize`.
msg290124 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-03-24 20:10
New changeset fff9a31a91283c39c363af219e595eab7d4da6f7 by Serhiy Storchaka in branch 'master':
bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. (#748)
https://github.com/python/cpython/commit/fff9a31a91283c39c363af219e595eab7d4da6f7
History
Date User Action Args
2022-04-11 14:58:44adminsetgithub: 74051
2017-03-24 20:10:26serhiy.storchakasetmessages: + msg290124
2017-03-21 06:54:33serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-03-21 06:24:40serhiy.storchakasetpull_requests: + pull_request662
2017-03-21 06:19:52serhiy.storchakacreate