[PR #1326] [MERGED] PY: continue renovation of extension #1915

Open
opened 2026-01-29 20:56:27 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/google/brotli/pull/1326
Author: @copybara-service[bot]
Created: 9/9/2025
Status: Merged
Merged: 9/24/2025
Merged by: @copybara-service[bot]

Base: masterHead: test_804798881


📝 Commits (1)

  • 9686382 PY: continue renovation of extension

📊 Changes

8 files changed (+1171 additions, -1180 deletions)

View changed files

📝 CHANGELOG.md (+2 -2)
📝 python/_brotli.c (+819 -877)
📝 python/tests/_test_utils.py (+84 -60)
📝 python/tests/bro_test.py (+69 -66)
📝 python/tests/compress_test.py (+21 -21)
📝 python/tests/compressor_test.py (+62 -56)
📝 python/tests/decompress_test.py (+20 -19)
📝 python/tests/decompressor_test.py (+94 -79)

📄 Description

PY: continue renovation of extension

Fixed unchecked malloc for "tail" input data.
Fixed inconsistencies in docstrings.

Rewritten "growable buffer" to C-code, so it could run without acquiring GIL.

Breaking changes:

  • native object allocation failures now handled at object creation time
  • some lower level exceptions (e.g. OOM) are not shadowed by brotli.error

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/google/brotli/pull/1326 **Author:** [@copybara-service[bot]](https://github.com/apps/copybara-service) **Created:** 9/9/2025 **Status:** ✅ Merged **Merged:** 9/24/2025 **Merged by:** [@copybara-service[bot]](https://github.com/apps/copybara-service) **Base:** `master` ← **Head:** `test_804798881` --- ### 📝 Commits (1) - [`9686382`](https://github.com/google/brotli/commit/9686382ff301fcfa18160de6e891f682299ae983) PY: continue renovation of extension ### 📊 Changes **8 files changed** (+1171 additions, -1180 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -2) 📝 `python/_brotli.c` (+819 -877) 📝 `python/tests/_test_utils.py` (+84 -60) 📝 `python/tests/bro_test.py` (+69 -66) 📝 `python/tests/compress_test.py` (+21 -21) 📝 `python/tests/compressor_test.py` (+62 -56) 📝 `python/tests/decompress_test.py` (+20 -19) 📝 `python/tests/decompressor_test.py` (+94 -79) </details> ### 📄 Description PY: continue renovation of extension Fixed unchecked malloc for "tail" input data. Fixed inconsistencies in docstrings. Rewritten "growable buffer" to C-code, so it could run without acquiring GIL. Breaking changes: - native object allocation failures now handled at object creation time - some lower level exceptions (e.g. OOM) are not shadowed by brotli.error --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 20:56:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#1915