Skip to content

gc.freeze documentation is unclear #103059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
raylu opened this issue Mar 27, 2023 · 1 comment
Closed

gc.freeze documentation is unclear #103059

raylu opened this issue Mar 27, 2023 · 1 comment
Labels
docs Documentation in the Doc dir

Comments

@raylu
Copy link
Contributor

raylu commented Mar 27, 2023

Documentation

The current advice seems to mean you should gc.disable() and gc.freeze() right before os.fork(), which doesn't do anything.

Łukasz explained the advice in https://bugs.python.org/issue31558#msg302780.

I'm proposing a fix in PR #103058.

Linked PRs

@raylu raylu added the docs Documentation in the Doc dir label Mar 27, 2023
raylu added a commit to raylu/cpython that referenced this issue Mar 27, 2023
The current advice seems to mean you should gc.disable() and gc.freeze()
right before os.fork(), which doesn't do anything.

Łukasz explained the advice in
https://bugs.python.org/issue31558#msg302780.

This moves the advice around gc.disable out of the gc.freeze docs.
raylu added a commit to raylu/cpython that referenced this issue Mar 27, 2023
The current advice seems to mean you should gc.disable() and gc.freeze()
right before os.fork(), which doesn't do anything.

Łukasz explained the advice in
https://bugs.python.org/issue31558#msg302780.

This moves the advice around gc.disable out of the gc.freeze docs.
raylu added a commit to raylu/cpython that referenced this issue Mar 29, 2023
The current advice seems to mean you should gc.disable() and gc.freeze()
right before os.fork(), which doesn't do anything.

Łukasz explained the advice in
https://bugs.python.org/issue31558#msg302780.

This moves the advice around gc.disable out of the gc.freeze docs.
@arhadthedev
Copy link
Member

@pitrou, @pablogsal (as gc experts)

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Apr 10, 2023
carljm pushed a commit that referenced this issue Apr 10, 2023
gh-103059: Clarify gc.freeze documentation (GH-103058)
(cherry picked from commit 8b1b171)

Co-authored-by: raylu <[email protected]>
@carljm carljm closed this as completed Apr 10, 2023
warsaw pushed a commit to warsaw/cpython that referenced this issue Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

3 participants