FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-123609: Clarify usage of standalone `PyBUF_FORMAT` by ZeroIntensity · Pull Request #123778 · python/cpython · GitHub

Repository navigation

gh-123609: Clarify usage of standalone PyBUF_FORMAT - #123778

Merged
encukou merged 6 commits into
python:mainfrom
ZeroIntensity:pybufformat-pybufsimple
Sep 10, 2024
Merged

encukou merged 6 commits into
python:mainfrom
ZeroIntensity:pybufformat-pybufsimple

Conversation

ZeroIntensity commented Sep 6, 2024 •
edited
Loading

Copy link
Copy Markdown
Member

(@encukou, this needs skip news. Edit: nevermind, apparently the bot does that! 😄)


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

Comment thread Doc/c-api/buffer.rst Outdated
Co-authored-by: Petr Viktorin <encukou@gmail.com>

ZeroIntensity commented Sep 8, 2024 •
edited
Loading

Copy link
Copy Markdown
Member Author

@philthompson10 I've tried to make this more user-facing, could you review? (It's better to keep the message short so people don't skip over it.)

Copy link
Copy Markdown

To be honest I'd rewrite the whole Buffer request types section and split it into a PyBUF_SIMPLE (with optional PyBUF_WRITABLE) sub-section and a non-PyBUF_SIMPLE sub-section.

If not then I'd at least change the last sentence of the previous paragraph to...

PyBUF_SIMPLE | PyBUF_WRITABLE can be used to request a simple writable buffer.

I know that PyBUF_SIMPLE isn't necessary with the current implementation but the above makes the intent much more clear.

Copy link
Copy Markdown
Member Author

Rewriting the section is probably out of the scope of this PR, but I did just add that sentence.

Comment thread Doc/c-api/buffer.rst Outdated
Co-authored-by: Petr Viktorin <encukou@gmail.com>
encukou merged commit 962304a into python:main Sep 10, 2024
encukou added needs backport to 3.12 only security fixes needs backport to 3.13 only security fixes labels Sep 10, 2024

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 10, 2024
…-123778)

(cherry picked from commit 962304a)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 10, 2024
…-123778)

(cherry picked from commit 962304a)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

bedevere-app Bot commented Sep 10, 2024

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Sep 10, 2024

bedevere-app Bot commented Sep 10, 2024

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.12 only security fixes label Sep 10, 2024
ZeroIntensity deleted the pybufformat-pybufsimple branch September 10, 2024 13:43
Yhg1s pushed a commit that referenced this pull request Sep 24, 2024
…) (#123903)

gh-123609: Clarify usage of standalone `PyBUF_FORMAT` (GH-123778)
(cherry picked from commit 962304a)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
willingc pushed a commit that referenced this pull request Nov 1, 2024
…) (GH-123904)

gh-123609: Clarify usage of standalone `PyBUF_FORMAT` (GH-123778)
(cherry picked from commit 962304a)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
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

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL