Title: bz2: return streaming output from BZ2Compressor.compress() by doma17 · Pull Request #8330 · RustPython/RustPython · GitHub
Open Graph Title: bz2: return streaming output from BZ2Compressor.compress() by doma17 · Pull Request #8330 · RustPython/RustPython
X Title: bz2: return streaming output from BZ2Compressor.compress() by doma17 · Pull Request #8330 · RustPython/RustPython
Description: Closes #8329 This PR follows our AI policy AI assistance: Codex gpt-5.6-sol I reviewed and manually verified the change. Summary Return output produced by BZ2Compressor.compress() instead of waiting until flush(). This restores incremental compression output and lets testDecompressorChunksMaxsize run without its RustPython expected-failure marker. Testing cargo run --release -- -m test test_bz2 cargo run -- extra_tests/snippets/stdlib_bz2.py prek run --all-files Compared incremental output and round-trip decompression with CPython Summary by CodeRabbit Bug Fixes Fixed BZ2 compression so compress() returns available compressed data immediately instead of an empty result. Ensured streaming compression output can be combined with flush() output and successfully decompressed. Tests Added coverage for partial BZ2 compression output and full payload reconstruction.
Open Graph Description: Closes #8329 This PR follows our AI policy AI assistance: Codex gpt-5.6-sol I reviewed and manually verified the change. Summary Return output produced by BZ2Compressor.compress() instead of wait...
X Description: Closes #8329 This PR follows our AI policy AI assistance: Codex gpt-5.6-sol I reviewed and manually verified the change. Summary Return output produced by BZ2Compressor.compress() instead of wait...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8330
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f5d89422-5663-5db7-7975-5c66c716d49a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CB0E:390D7C:37FA416:4DB9B9E:6A60EB0B |
| html-safe-nonce | 6e5caa5ec54d41de38c0fcbdc5248a11e2c268ef4013496eb313b5c050761d70 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjBFOjM5MEQ3QzozN0ZBNDE2OjREQjlCOUU6NkE2MEVCMEIiLCJ2aXNpdG9yX2lkIjoiNTk3NzU2OTk3MjM4MDU3NzM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 13f255bc3463b342cb8964d4f43fd0b0e6da481a00dd78ebbb3c2407461cc8eb |
| hovercard-subject-tag | pull_request:4089484991 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/8330/files |
| twitter:image | https://avatars.githubusercontent.com/u/67214970?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/67214970?s=400&v=4 |
| og:image:alt | Closes #8329 This PR follows our AI policy AI assistance: Codex gpt-5.6-sol I reviewed and manually verified the change. Summary Return output produced by BZ2Compressor.compress() instead of wait... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3ba36a464b9464992131f4003292a219fc87f92404b0dbe3fd1ef07f11102d0f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2cc5e4f897a27632dd600edfec4c737bea2f8338 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width