Skip to content

GH-117759: Document incremental GC - #123266

Merged
markshannon merged 4 commits into
python:mainfrom
faster-cpython:doc-incremental-gc
Aug 27, 2024
Merged

markshannon merged 4 commits into
python:mainfrom
faster-cpython:doc-incremental-gc

Conversation

@markshannon

@markshannon markshannon commented Aug 23, 2024 •

Copy link
Copy Markdown
Member

This PR updates the docs for what's new in 3.13 and updates the docs for the GC module.

It also includes a small behavioral change to gc.get_objects() to make it more consistent with the result of the gc module API and consistent with incremental collection:

gc.get_objects(1) now returns no objects.
gc_get_objects(2) now returns all objects in the old generation.


📚 Documentation preview 📚: https://cpython-previews--123266.org.readthedocs.build/

Comment thread Doc/library/gc.rst Resolved
Comment thread Doc/library/gc.rst Resolved
Comment thread Doc/whatsnew/3.13.rst Resolved
Comment thread Python/gc.c Resolved
@bedevere-app

bedevere-app Bot commented Aug 23, 2024

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

markshannon and others added 2 commits August 23, 2024 17:03
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
@markshannon

Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again

@bedevere-app

bedevere-app Bot commented Aug 27, 2024

Copy link
Copy Markdown

Thanks for making the requested changes!

@mdboom: please review the changes made to this pull request.

@bedevere-app
bedevere-app Bot requested a review from mdboom August 27, 2024 09:37
@markshannon
markshannon merged commit f49a916 into python:main Aug 27, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 27, 2024
* Update what's new

* Update gc module docs and fix inconsistency in gc.get_objects
(cherry picked from commit f49a916)

Co-authored-by: Mark Shannon <mark@hotpy.org>
@bedevere-app

bedevere-app Bot commented Aug 27, 2024

Copy link
Copy Markdown

GH-123395 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Aug 27, 2024
Yhg1s pushed a commit that referenced this pull request Sep 2, 2024
GH-117759: Document incremental GC (GH-123266)

* Update what's new

* Update gc module docs and fix inconsistency in gc.get_objects
(cherry picked from commit f49a916)

Co-authored-by: Mark Shannon <mark@hotpy.org>
Yhg1s added a commit to Yhg1s/cpython that referenced this pull request Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants