classification
Title: [C API] Upgrade the C API in extension modules
Type: Stage: resolved
Components: C API Versions: Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: shihai1991, vstinner
Priority: normal Keywords: patch

Created on 2020-12-01 08:55 by vstinner, last changed 2020-12-16 08:16 by vstinner. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 23586 merged vstinner, 2020-12-01 08:55
PR 23587 merged vstinner, 2020-12-01 09:06
Messages (3)
msg382220 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-12-01 08:55
Python has around 118 extension modules. Most of them are quite old and still use the old way to write C extensions. I created this issue as a placeholder to modernize the code using my new tool:
https://github.com/pythoncapi/upgrade_pythoncapi

For example, replace PyMem_MALLOC() with PyMem_Malloc(), since PyMem_MALLOC() is a deprecated alias.
msg382221 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-12-01 08:57
New changeset 00d7abd7ef588fc4ff0571c8579ab4aba8ada1c0 by Victor Stinner in branch 'master':
bpo-42519: Replace PyMem_MALLOC() with PyMem_Malloc() (GH-23586)
https://github.com/python/cpython/commit/00d7abd7ef588fc4ff0571c8579ab4aba8ada1c0
msg382224 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-12-01 09:37
New changeset 32bd68c839adb7b42af12366ab0892303115d1d1 by Victor Stinner in branch 'master':
bpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587)
https://github.com/python/cpython/commit/32bd68c839adb7b42af12366ab0892303115d1d1
History
Date User Action Args
2020-12-16 08:16:58vstinnersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-12-01 11:30:08shihai1991setnosy: + shihai1991
2020-12-01 09:37:47vstinnersetmessages: + msg382224
2020-12-01 09:06:15vstinnersetpull_requests: + pull_request22461
2020-12-01 08:57:02vstinnersetmessages: + msg382221
2020-12-01 08:55:47vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request22460
2020-12-01 08:55:35vstinnercreate