Skip to content
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

gh-119467: Fix Py_buffer.format type and correct documentation typo #119475

Merged
merged 1 commit into from
May 27, 2024

Conversation

adiaholic
Copy link
Contributor

@adiaholic adiaholic commented May 23, 2024

This commit addresses the inconsistency between the Py_buffer.format declaration and its documentation as reported in issue #119467.

The documentation previously stated const char * for the format field, which has been corrected to char * to match the actual code declaration. Additionally, a spelling mistake in the documentation has been corrected to enhance clarity and accuracy.


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

Copy link

cpython-cla-bot bot commented May 23, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

This commit addresses the inconsistency between the Py_buffer.format declaration and its documentation as reported in issue python#119467. The documentation previously stated `const char *` for the format field, which has been corrected to `char *` to match the actual code declaration. Additionally, a spelling mistake in the documentation has been corrected to enhance clarity and accuracy.

References:
- Issue: python#119467
Copy link
Contributor

@blaisep blaisep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @adiaholic , thank you for your first contribution.
These details help raise confidence in the quality of the docs.
I will ask if @encukou can merge this because he is more familiar with the C API and he has the merge authority.

Copy link
Member

@Eclips4 Eclips4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Eclips4 Eclips4 added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels May 24, 2024
@kumaraditya303 kumaraditya303 merged commit 3b26cd8 into python:main May 27, 2024
31 checks passed
@miss-islington-app
Copy link

Thanks @adiaholic for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 27, 2024
…typo (pythonGH-119475)

(cherry picked from commit 3b26cd8)

Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 27, 2024
…typo (pythonGH-119475)

(cherry picked from commit 3b26cd8)

Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented May 27, 2024

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

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label May 27, 2024
@bedevere-app
Copy link

bedevere-app bot commented May 27, 2024

GH-119603 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label May 27, 2024
kumaraditya303 pushed a commit that referenced this pull request May 27, 2024
… typo (GH-119475) (#119603)

gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475)
(cherry picked from commit 3b26cd8)

Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
kumaraditya303 pushed a commit that referenced this pull request May 27, 2024
… typo (GH-119475) (#119602)

gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475)
(cherry picked from commit 3b26cd8)

Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
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 skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants