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

gh-157242: Allow negative grow in PyBytesWriter_Grow() by vstinner · Pull Request #157375 · python/cpython · GitHub

Repository navigation

gh-157242: Allow negative grow in PyBytesWriter_Grow() - #157375

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

vstinner merged 1 commit into
python:mainfrom
vstinner:fix_writer_resize

Conversation

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

Copy link
Copy Markdown
Member

PyBytesWriter_Resize() doesn't need to call byteswriter_resize() if the buffer is already large enough.

PyBytesWriter_Resize() doesn't need to call byteswriter_resize() if
the buffer is already large enough.

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34528288 | 📁 Comparing 9d87610 against main (b1e7554)

  🔍 Preview build  

1 file changed
± c-api/bytes.html

vstinner merged commit bab97c5 into python:main Sep 12, 2026
58 checks passed
vstinner deleted the fix_writer_resize branch September 12, 2026 20:12
johnslavik pushed a commit to johnslavik/cpython that referenced this pull request Sep 14, 2026
…157375)

PyBytesWriter_Resize() doesn't need to call byteswriter_resize() if
the buffer is already large enough.
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL