Issue38896
Created on 2019-11-22 18:41 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 17354 | merged | vstinner, 2019-11-22 18:45 | |
| Messages (3) | |||
|---|---|---|---|
| msg357312 - (view) | Author: STINNER Victor (vstinner) * | Date: 2019-11-22 18:41 | |
The PyUnicode_ClearFreeList() function does nothing since Python 3.3, since this change: commit d63a3b8beb4a0841cb59fb3515347ccaab34b733 Author: Martin v. Löwis <martin@v.loewis.de> Date: Wed Sep 28 07:41:54 2011 +0200 Implement PEP 393. I propose attached PR to remove the function. It seems like the function is part of the limited API and exported by PC/python3.def. But I don't see any usecase to explicitly clear the unicode freelist. Call gc.collect() to clear all free lists: no private API is needed. |
|||
| msg357313 - (view) | Author: STINNER Victor (vstinner) * | Date: 2019-11-22 18:44 | |
See also similar issue, bpo-37340 "Remove PyMethod_ClearFreeList() and PyCFunction_ClearFreeList() functions". |
|||
| msg357355 - (view) | Author: STINNER Victor (vstinner) * | Date: 2019-11-23 01:30 | |
New changeset d68b592dd67cb87c4fa862a8d3b3fd0a7d05e113 by Victor Stinner in branch 'master': bpo-38896: Remove PyUnicode_ClearFreeList() function (GH-17354) https://github.com/python/cpython/commit/d68b592dd67cb87c4fa862a8d3b3fd0a7d05e113 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:23 | admin | set | github: 83077 |
| 2019-11-23 01:38:07 | vstinner | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2019-11-23 01:30:52 | vstinner | set | messages: + msg357355 |
| 2019-11-22 18:45:00 | vstinner | set | keywords:
+ patch stage: patch review pull_requests: + pull_request16839 |
| 2019-11-22 18:44:54 | vstinner | set | messages: + msg357313 |
| 2019-11-22 18:41:13 | vstinner | create | |