Title: gh-108111: Flush gzip write buffer before seeking, fixing bad writes by effigies · Pull Request #108341 · python/cpython · GitHub
Open Graph Title: gh-108111: Flush gzip write buffer before seeking, fixing bad writes by effigies · Pull Request #108341 · python/cpython
X Title: gh-108111: Flush gzip write buffer before seeking, fixing bad writes by effigies · Pull Request #108341 · python/cpython
Description: Issue described in detail in #108111. Short story: write(x); seek(len(x)); write(x) results in b''.join([x, bytes(len(x)), x]) being written. This is due to buffered writes not updating the GzipFile.offset() until flushed. It's possible there could be something more efficient, but this seemed like the simplest solution. Issue: gh-108111
Open Graph Description: Issue described in detail in #108111. Short story: write(x); seek(len(x)); write(x) results in b''.join([x, bytes(len(x)), x]) being written. This is due to buffered writes not updating the...
X Description: Issue described in detail in #108111. Short story: write(x); seek(len(x)); write(x) results in b''.join([x, bytes(len(x)), x]) being written. This is due to buffered writes not upda...
Opengraph URL: https://github.com/python/cpython/pull/108341
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4df13b85-76b8-3ad6-45d1-3f928949db87 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BD44:B7306:1BE1569:2692707:696AA95E |
| html-safe-nonce | 89e063c4fced5fbe4a9663725cbce2016e7aafea80e9c9d76b4b0a74b34a03e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDQ0OkI3MzA2OjFCRTE1Njk6MjY5MjcwNzo2OTZBQTk1RSIsInZpc2l0b3JfaWQiOiI5MTAyNzc1MDY5MjU4MTk3MzQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7cefce1a09bcd8e1cf504f58c388e96f375eac9a5cea1c13daf9e55a74875d50 |
| hovercard-subject-tag | pull_request:1485465064 |
| 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/python/cpython/pull/108341/files |
| twitter:image | https://avatars.githubusercontent.com/u/83442?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/83442?s=400&v=4 |
| og:image:alt | Issue described in detail in #108111. Short story: write(x); seek(len(x)); write(x) results in b''.join([x, bytes(len(x)), x]) being written. This is due to buffered writes not updating the... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | dd9a979046e6382bd084e2bd873bf65f797125ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width