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

Py_buffer.format declaration inconsistent with the docs #119467

Closed
philthompson10 opened this issue May 23, 2024 · 3 comments
Closed

Py_buffer.format declaration inconsistent with the docs #119467

philthompson10 opened this issue May 23, 2024 · 3 comments
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes 3.14 new features, bugs and security fixes docs Documentation in the Doc dir easy topic-C-API type-bug An unexpected behavior, bug, or error

Comments

@philthompson10
Copy link

philthompson10 commented May 23, 2024

Bug report

Bug description:

The declaration of the format field of the Py_buffer structure is char * but the documentation states it is const char *.

IMHO the declaration should be changed to match the docs.

CPython versions tested on:

3.8, 3.9, 3.10, 3.11, 3.12, 3.13

Operating systems tested on:

Linux, macOS, Windows

Linked PRs

@philthompson10 philthompson10 added the type-bug An unexpected behavior, bug, or error label May 23, 2024
@Eclips4 Eclips4 added docs Documentation in the Doc dir topic-C-API labels May 23, 2024
@Eclips4
Copy link
Member

Eclips4 commented May 23, 2024

Hello!
Would you like to send a PR with fix? :)

@Eclips4 Eclips4 added 3.12 bugs and security fixes 3.13 bugs and security fixes 3.14 new features, bugs and security fixes easy labels May 23, 2024
@philthompson10
Copy link
Author

I'd like to - may take a while...

adiaholic added a commit to adiaholic/cpython that referenced this issue May 23, 2024
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
@adiaholic
Copy link
Contributor

I have pushed a fix for this inconsistency. It would be great if @Eclips4 could review the changes and confirm if this resolves the issue.

Feedback is highly appreciated!

adiaholic added a commit to adiaholic/cpython that referenced this issue May 23, 2024
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
miss-islington pushed a commit to miss-islington/cpython that referenced this issue 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 issue May 27, 2024
…typo (pythonGH-119475)

(cherry picked from commit 3b26cd8)

Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
kumaraditya303 pushed a commit that referenced this issue 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 issue 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 issue Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes 3.14 new features, bugs and security fixes docs Documentation in the Doc dir easy topic-C-API type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants