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

gh-126980: Fix `bytearray.__buffer__` crash on `PyBUF_{READ,WRITE}` by sobolevn · Pull Request #126981 · python/cpython · GitHub

Repository navigation

gh-126980: Fix bytearray.__buffer__ crash on PyBUF_{READ,WRITE} - #126981

Merged
sobolevn merged 2 commits into
python:mainfrom
sobolevn:issue-126980
Nov 19, 2024
Merged

sobolevn merged 2 commits into
python:mainfrom
sobolevn:issue-126980

Conversation

sobolevn commented Nov 18, 2024 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Related #114802

@JelleZijlstra, since you are __buffer__ PEP author, could you please take a look? :)

Comment thread Lib/test/test_buffer.py Outdated

Copy link
Copy Markdown
Member

@JelleZijlstra, since you are __buffer__ PEP author, could you please take a look? :)

I don't think I wrote bytearray_getbuffer; the buffer protocol predates my PEP. This change looks good to me though, thanks!

Co-authored-by: Victor Stinner <vstinner@python.org>

Copy link
Copy Markdown
Member Author

sobolevn merged commit 3932e1d into python:main Nov 19, 2024

Copy link
Copy Markdown

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

Copy link
Copy Markdown

Sorry, @sobolevn, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 3932e1db5353bbcf3e3c1133cc9d2cde654cb645 3.13

Copy link
Copy Markdown
Member Author

Will do a manual one.

sobolevn added a commit to sobolevn/cpython that referenced this pull request Nov 19, 2024
…EAD,WRITE}` (pythonGH-126981)

(cherry picked from commit 3932e1d)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
sobolevn added a commit to sobolevn/cpython that referenced this pull request Nov 19, 2024
…EAD,WRITE}` (pythonGH-126981)

(cherry picked from commit 3932e1d)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>

bedevere-app Bot commented Nov 19, 2024

Copy link
Copy Markdown

GH-127023 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 Nov 19, 2024
sobolevn added a commit that referenced this pull request Nov 19, 2024
…ITE}` (GH-126981) (#127023)

(cherry picked from commit 3932e1d)

Co-authored-by: Victor Stinner <vstinner@python.org>
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
…TE}` (python#126981)

Co-authored-by: Victor Stinner <vstinner@python.org>
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL