| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:463dc8ad-16ac-921b-7a0a-6bff498549bd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9CD0:7A60E:3795B93:47511E5:6B01EE32 |
| html-safe-nonce | 7532331ddb22e1e29fa883196e680ca3ebbc1b49951c795ee7a33ec905a994ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0QwOjdBNjBFOjM3OTVCOTM6NDc1MTFFNTo2QjAxRUUzMiIsInZpc2l0b3JfaWQiOiIzOTU0OTEwNTczNDg0OTYxMzMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 722b66103206a9461efb9fcaeb656d268e1d6287c56e1cb497c7e18eb8a74250 |
| hovercard-subject-tag | pull_request:4490707277 |
| 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 | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/157243/commits |
| twitter:image | https://opengraph.githubassets.com/1fa59db537d87a5ce0cdf6f2b7234018e6f26900f745c3cd45247b0853bbef2a/python/cpython/pull/157243 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1fa59db537d87a5ce0cdf6f2b7234018e6f26900f745c3cd45247b0853bbef2a/python/cpython/pull/157243 |
| og:image:alt | If PyBytesWriter_Resize() fails, leave the writer unchanged.
Add a new internal _PyBytes_ResizeKeepOnError() function similar to _PyBytes_Resize() but leaves the bytes object unchanged on error.
... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/cpython/pull/157243/commits#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157243%2Fcommits |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157243%2Fcommits |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/157243/commits |
| Reload | https://github.com/python/cpython/pull/157243/commits |
| Reload | https://github.com/python/cpython/pull/157243/commits |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| vstinner:writer_resize2 | https://github.com/vstinner/cpython/tree/writer_resize2 |
| Conversation | https://github.com/python/cpython/pull/157243 |
| Commits23 (23) | https://github.com/python/cpython/pull/157243/commits |
| Checks | https://github.com/python/cpython/pull/157243/checks |
| Files changed | https://github.com/python/cpython/pull/157243/files |
| gh-157242: Fix PyBytesWriter_Resize() on MemoryError | https://github.com/python/cpython/pull/157243/commits#top |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| vstinner:writer_resize2 | https://github.com/vstinner/cpython/tree/writer_resize2 |
| gh-157242: Leave bytearray unchanged if resize() fails | https://github.com/python/cpython/pull/157243/commits/d0441c49597936730fc9ba6c69bba5e6814399a8 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| d0441c4 | https://github.com/python/cpython/pull/157243/commits/d0441c49597936730fc9ba6c69bba5e6814399a8 |
| https://github.com/python/cpython/tree/d0441c49597936730fc9ba6c69bba5e6814399a8 |
| Add NEWS entries | https://github.com/python/cpython/pull/157243/commits/5f1ef328da91e6708fd4c474508a32408d069a19 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 5f1ef32 | https://github.com/python/cpython/pull/157243/commits/5f1ef328da91e6708fd4c474508a32408d069a19 |
| https://github.com/python/cpython/tree/5f1ef328da91e6708fd4c474508a32408d069a19 |
| Fix resize() with non-zero start | https://github.com/python/cpython/pull/157243/commits/a1e64d39f51d65e9572c94604e16d5b001ed4caa |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| maurycy | https://github.com/python/cpython/commits?author=maurycy |
| a1e64d3 | https://github.com/python/cpython/pull/157243/commits/a1e64d39f51d65e9572c94604e16d5b001ed4caa |
| https://github.com/python/cpython/tree/a1e64d39f51d65e9572c94604e16d5b001ed4caa |
| Reimplement _PyBytes_Resize() via _PyBytes_ResizeKeepOnError() | https://github.com/python/cpython/pull/157243/commits/4b4bcfba9682cd70076ad848497fca001a4f2988 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 4b4bcfb | https://github.com/python/cpython/pull/157243/commits/4b4bcfba9682cd70076ad848497fca001a4f2988 |
| https://github.com/python/cpython/tree/4b4bcfba9682cd70076ad848497fca001a4f2988 |
| Merge branch 'main' into writer_resize2 | https://github.com/python/cpython/pull/157243/commits/ba27fe049c0cf53eb8243b86a9639865f4214eb3 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| ba27fe0 | https://github.com/python/cpython/pull/157243/commits/ba27fe049c0cf53eb8243b86a9639865f4214eb3 |
| https://github.com/python/cpython/tree/ba27fe049c0cf53eb8243b86a9639865f4214eb3 |
| Fix resize() when shrinking the bytearray | https://github.com/python/cpython/pull/157243/commits/4d581fae561124a745c27fbadbe4f54751cf7199 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 4d581fa | https://github.com/python/cpython/pull/157243/commits/4d581fae561124a745c27fbadbe4f54751cf7199 |
| https://github.com/python/cpython/tree/4d581fae561124a745c27fbadbe4f54751cf7199 |
| Fix take_bytes() | https://github.com/python/cpython/pull/157243/commits/f51cba57d3e5b2acb6bfd4540ebf4abc679beb71 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| f51cba5 | https://github.com/python/cpython/pull/157243/commits/f51cba57d3e5b2acb6bfd4540ebf4abc679beb71 |
| https://github.com/python/cpython/tree/f51cba57d3e5b2acb6bfd4540ebf4abc679beb71 |
| Fix typo in test_take_bytes_error(): pass to_take argument | https://github.com/python/cpython/pull/157243/commits/7116757d42fd0e3c744b899b9195bfbc7a6ff06e |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 7116757 | https://github.com/python/cpython/pull/157243/commits/7116757d42fd0e3c744b899b9195bfbc7a6ff06e |
| https://github.com/python/cpython/tree/7116757d42fd0e3c744b899b9195bfbc7a6ff06e |
| Add inject_memory_error() | https://github.com/python/cpython/pull/157243/commits/0ca5c9cd8b670d46d236e2174b9a7e4b5e8e5934 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 0ca5c9c | https://github.com/python/cpython/pull/157243/commits/0ca5c9cd8b670d46d236e2174b9a7e4b5e8e5934 |
| https://github.com/python/cpython/tree/0ca5c9cd8b670d46d236e2174b9a7e4b5e8e5934 |
| Remove alloc parameter of bytearray_reinit_from_bytes() | https://github.com/python/cpython/pull/157243/commits/ba1e2c8d6be990393f83492891ec14500c7ab56b |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| ba1e2c8 | https://github.com/python/cpython/pull/157243/commits/ba1e2c8d6be990393f83492891ec14500c7ab56b |
| https://github.com/python/cpython/tree/ba1e2c8d6be990393f83492891ec14500c7ab56b |
| Add bytearray_realign_data_lock_held() | https://github.com/python/cpython/pull/157243/commits/e9e1f02cd8bff76b30ea54bff4587bae5a7a3bf9 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| e9e1f02 | https://github.com/python/cpython/pull/157243/commits/e9e1f02cd8bff76b30ea54bff4587bae5a7a3bf9 |
| https://github.com/python/cpython/tree/e9e1f02cd8bff76b30ea54bff4587bae5a7a3bf9 |
| Don't call _PyReftracerTrack() on dangling pointer | https://github.com/python/cpython/pull/157243/commits/a0a3753ce6338a45db3f48af5af33f4ddb963d22 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| a0a3753 | https://github.com/python/cpython/pull/157243/commits/a0a3753ce6338a45db3f48af5af33f4ddb963d22 |
| https://github.com/python/cpython/tree/a0a3753ce6338a45db3f48af5af33f4ddb963d22 |
| Add test_bytes_resize_tracer() | https://github.com/python/cpython/pull/157243/commits/53c3b5117971c3b85e658dc5706b6362be547435 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 53c3b51 | https://github.com/python/cpython/pull/157243/commits/53c3b5117971c3b85e658dc5706b6362be547435 |
| https://github.com/python/cpython/tree/53c3b5117971c3b85e658dc5706b6362be547435 |
| Write trailing null bytes on MemoryError | https://github.com/python/cpython/pull/157243/commits/fb67d23ef0e22e8c91c1bde28aecb737985a7feb |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| fb67d23 | https://github.com/python/cpython/pull/157243/commits/fb67d23ef0e22e8c91c1bde28aecb737985a7feb |
| https://github.com/python/cpython/tree/fb67d23ef0e22e8c91c1bde28aecb737985a7feb |
| Add bytearray_write_trailing_null_byte() | https://github.com/python/cpython/pull/157243/commits/6762d16bec021983889af2b1608bfc6d135948c8 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 6762d16 | https://github.com/python/cpython/pull/157243/commits/6762d16bec021983889af2b1608bfc6d135948c8 |
| https://github.com/python/cpython/tree/6762d16bec021983889af2b1608bfc6d135948c8 |
| Optimize bytearray_realign_data_lock_held() | https://github.com/python/cpython/pull/157243/commits/909270cc3d87777cac6bc021cc365ae2b7b4609b |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 909270c | https://github.com/python/cpython/pull/157243/commits/909270cc3d87777cac6bc021cc365ae2b7b4609b |
| https://github.com/python/cpython/tree/909270cc3d87777cac6bc021cc365ae2b7b4609b |
| Fix bytearray_resize_storage() | https://github.com/python/cpython/pull/157243/commits/0a33fd4ef0a88bb42acd460df98feb7979304f95 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 0a33fd4 | https://github.com/python/cpython/pull/157243/commits/0a33fd4ef0a88bb42acd460df98feb7979304f95 |
| https://github.com/python/cpython/tree/0a33fd4ef0a88bb42acd460df98feb7979304f95 |
| Add one more take_bytes() error test | https://github.com/python/cpython/pull/157243/commits/dfb05bfc4f863803d07833d5caaba417f5d016e2 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| dfb05bf | https://github.com/python/cpython/pull/157243/commits/dfb05bfc4f863803d07833d5caaba417f5d016e2 |
| https://github.com/python/cpython/tree/dfb05bfc4f863803d07833d5caaba417f5d016e2 |
| no need for testing PyBytesWriter_Resize() shrinking | https://github.com/python/cpython/pull/157243/commits/2f1e9652d8a7cd10ec153d4f684bee2f8db116d1 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 2f1e965 | https://github.com/python/cpython/pull/157243/commits/2f1e9652d8a7cd10ec153d4f684bee2f8db116d1 |
| https://github.com/python/cpython/tree/2f1e9652d8a7cd10ec153d4f684bee2f8db116d1 |
| Merge branch 'main' into writer_resize2 | https://github.com/python/cpython/pull/157243/commits/306f13270b0d80b884545c89114ed5c768384a58 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 306f132 | https://github.com/python/cpython/pull/157243/commits/306f13270b0d80b884545c89114ed5c768384a58 |
| https://github.com/python/cpython/tree/306f13270b0d80b884545c89114ed5c768384a58 |
| Revert bytearray changes | https://github.com/python/cpython/pull/157243/commits/a9a1423a1293c67dc9e7b6e24f908e2b98cce0c9 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| a9a1423 | https://github.com/python/cpython/pull/157243/commits/a9a1423a1293c67dc9e7b6e24f908e2b98cce0c9 |
| https://github.com/python/cpython/tree/a9a1423a1293c67dc9e7b6e24f908e2b98cce0c9 |
| Resize: set pv earlier | https://github.com/python/cpython/pull/157243/commits/9fa1305a1b4b30ab7cf9e89d1a024e60084d01c4 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 9fa1305 | https://github.com/python/cpython/pull/157243/commits/9fa1305a1b4b30ab7cf9e89d1a024e60084d01c4 |
| https://github.com/python/cpython/tree/9fa1305a1b4b30ab7cf9e89d1a024e60084d01c4 |
| Move PyBytesWriter test | https://github.com/python/cpython/pull/157243/commits/9ce6a9946df6823c12f73d4f2d0a24dd040bb229 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 9ce6a99 | https://github.com/python/cpython/pull/157243/commits/9ce6a9946df6823c12f73d4f2d0a24dd040bb229 |
| https://github.com/python/cpython/tree/9ce6a9946df6823c12f73d4f2d0a24dd040bb229 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |