Fix typo in Py_mod_state_traverse docs#152144
Closed
hydrogen-mvm wants to merge 647 commits into
Closed
Conversation
…ntation (python#150901) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
… `call_tzinfo_method` (python#151062)
…hon#144721) Co-authored-by: Stan Ulbrych <stan@python.org>
Remove references to server.handler_instance. This attribute has been removed in 2022 by commit 3ae975f.
…orting frozen modules (pythonGH-150634)
Minor improvement of a newly added test.
…lying stream access (python#145957) TextIOWrapper keeps its underlying stream in a member called `self->buffer`. That stream can be detached by user code, such as custom `.flush` implementations resulting in `self->buffer` being set to NULL. The implementation often checked at the start of functions if `self->buffer` is in a good state, but did not always recheck after other Python code was called which could modify `self->buffer`. The cases which need to be re-checked are hard to spot so rather than rely on reviewer effort create better safety by making all self->buffer access go through helper functions. Thank you yihong0618 for the test, NEWS and initial implementation in pythongh-143041. Co-authored-by: yihong0618 <zouzou0208@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
Since version 3.10, CPython requires OpenSSL 1.1.1 or higher. Therefore, support for keylogging can be assumed. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
|
The following commit authors need to sign the Contributor License Agreement: |
Contributor
Author
|
Closing since I forked the wrong Python version. Will reopen again. |
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
Add this suggestion to a batch that can be applied as a single commit.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.Add this suggestion to a batch that can be applied as a single commit.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.Suggestion cannot be applied right now. Please check back later.
I was reading the documentation here for
Py_mod_state_traverse:https://docs.python.org/3.15/c-api/module.html#c.Py_mod_state_traverse
It says at the bottom:
Added in version 3.15: Use [PyModuleDef.m_size] instead to support previous versions.That confused me, since
Py_mod_state_clearsaid to usem_clear, andPy_mod_state_freesaid to usem_free. I think them_sizeforPy_mod_state_traverseis a copypaste error from thePy_mod_state_sizedocs (which also says to usem_size).That said, this API is still very new to me, so please double-check the docs yourselves. This change might also need to be ported to 3.16 docs.
Thanks.