{{ message }}
gh-108963: using random to generate unique string in sys.intern test#109491
Merged
vstinner merged 6 commits intoOct 2, 2023
Merged
gh-108963: using random to generate unique string in sys.intern test#109491vstinner merged 6 commits into
vstinner merged 6 commits into
Conversation
serhiy-storchaka
approved these changes
Sep 17, 2023
Member
|
This change hides the issue that the test actually leaks memory: intern a string which is then only released at Python exit. Can we add a private deintern() function in _testcapi? Or run the test in a subprocess? Well, i don't know that it's a big deal, this change is ooookay-ish. |
Sorry, something went wrong.
vstinner
reviewed
Sep 18, 2023
vstinner
reviewed
Sep 19, 2023
vstinner
reviewed
Sep 21, 2023
vstinner
approved these changes
Sep 21, 2023
vstinner
left a comment
Member
There was a problem hiding this comment.
LGTM.
It makes me sad to leak memory. But I'm not sure about a private API to de-intern a string. I'm not sure of the consequences.
Sorry, something went wrong.
Contributor
|
Sorry, @aisk and @vstinner, I could not cleanly backport this to |
Sorry, something went wrong.
vstinner
pushed a commit
to vstinner/cpython
that referenced
this pull request
Oct 2, 2023
… test (python#109491) (cherry picked from commit 44b1e4e)
Yhg1s
pushed a commit
that referenced
this pull request
Oct 2, 2023
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this pull request
Sep 2, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
edited by bedevere-app
Bot
LoadingUh oh!
There was an error while loading. Please reload this page.
Copy link Copy MarkdownSorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.