Visitar URL original
gh-158592: Reallocate the list's array when deleting by index by x42005e1f · Pull Request #158602 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply the suggested change
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
  • Loading branch information
x42005e1f and picnixz authored Oct 3, 2026
commit 6f68a64cd7d055a84f407c643bd2c9f74fdb79bc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Fix deletion by index from a :class:`list` (``del list[index]``), which did
not reallocate the underlying array and thus did not free memory (a
regression made in 3.13.0a5).
Avoid holding memory much longer than needed after deleting
an item from a list via :keyword:`del`.
Comment thread
picnixz marked this conversation as resolved.
Outdated
Comment thread
x42005e1f marked this conversation as resolved.
Outdated
Loading