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

gh-157242: Leave bytearray unchanged if resize() fails by vstinner · Pull Request #157340 · python/cpython · GitHub

Repository navigation

gh-157242: Leave bytearray unchanged if resize() fails - #157340

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:bytearray_error
Sep 12, 2026
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:bytearray_error

Conversation

vstinner commented Sep 11, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

If bytearray.resize() or bytearray.take_bytes() fails, leave the bytearray unchanged.

Add PyBytesWriter_Resize() error test on bytearray.

If bytearray.resize() or bytearray.take_bytes() fails, leave the
bytearray unchanged.

Add PyBytesWriter_Resize() error test on bytearray.

Copy link
Copy Markdown
Member Author

See #157243 for the history and reviews of a previous version of this PR. I splitted the PR into two PRs to have smaller commits.

clin1234 pushed a commit to clin1234/cpython that referenced this pull request Sep 12, 2026
…157340)

If bytearray.resize() or bytearray.take_bytes() fails, leave the
bytearray unchanged.

Add PyBytesWriter_Resize() error test on bytearray.
johnslavik pushed a commit to johnslavik/cpython that referenced this pull request Sep 14, 2026
…157340)

If bytearray.resize() or bytearray.take_bytes() fails, leave the
bytearray unchanged.

Add PyBytesWriter_Resize() error test on bytearray.
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.

1 participant


Back | FazBrowse Home | New Git URL