| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:80cc951f-dd63-e064-ba2d-aa9e3dcc7e21 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EC86:E3A3B:1009598:157CFB8:6969938E |
| html-safe-nonce | f2cdc5162118e1262f9fcd4d3a29b47dee1d3830ba0c2c4493ecb53eb4b1142b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzg2OkUzQTNCOjEwMDk1OTg6MTU3Q0ZCODo2OTY5OTM4RSIsInZpc2l0b3JfaWQiOiI0NzUwNDY3NzQ3OTQ4MzY4NzgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 396bf466a6a19b9c943b91ff1c68cf01ad897d2645bc2aabddf09f9cd8d137ab |
| hovercard-subject-tag | pull_request:1340616238 |
| 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/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/104227/files |
| twitter:image | https://avatars.githubusercontent.com/u/906600?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/906600?s=400&v=4 |
| og:image:alt | This fixes various issues that crop up when inheriting from a class that implements the C buffer protocol.
In wrap_buffer, we need to make sure to call the exact slot that we're wrapping, or w... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/104227/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F104227%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F104227%2Ffiles |
|
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%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/104227/files |
| Reload | https://github.com/python/cpython/pull/104227/files |
| Reload | https://github.com/python/cpython/pull/104227/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| JelleZijlstra | https://github.com/JelleZijlstra |
| python:main | https://github.com/python/cpython/tree/main |
| JelleZijlstra:pep688fix | https://github.com/JelleZijlstra/cpython/tree/pep688fix |
|
Conversation
20
| https://github.com/python/cpython/pull/104227 |
|
Commits
14
| https://github.com/python/cpython/pull/104227/commits |
|
Checks
0
| https://github.com/python/cpython/pull/104227/checks |
|
Files changed
| https://github.com/python/cpython/pull/104227/files |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
|
gh-104223: Fix issues with inheriting from buffer classes
| https://github.com/python/cpython/pull/104227/files#top |
|
Show all changes
14 commits
| https://github.com/python/cpython/pull/104227/files |
|
b7fb7a4
Fix buffer classes using super()
JelleZijlstra May 6, 2023
| https://github.com/python/cpython/pull/104227/commits/b7fb7a47071bb85c054576d6e0cb17b6622505e2 |
|
c717784
Fix bf_releasebuffer in child classes
JelleZijlstra May 6, 2023
| https://github.com/python/cpython/pull/104227/commits/c717784f82d4eab23f7bd44217553b9989619806 |
|
9fcb214
Merge branch 'main' into pep688fix
JelleZijlstra May 6, 2023
| https://github.com/python/cpython/pull/104227/commits/9fcb214707918eb45066ab575194688afcd136ca |
|
88ce24d
Add a test
JelleZijlstra May 6, 2023
| https://github.com/python/cpython/pull/104227/commits/88ce24da3d15e86177cb6e710331382a21b28960 |
|
80a4b0b
Deal with __release_buffer__ saving references to the buffer
JelleZijlstra May 7, 2023
| https://github.com/python/cpython/pull/104227/commits/80a4b0b9b3dc7c3bc440272c2079f17e032da64a |
|
6e31664
Add another test
JelleZijlstra May 7, 2023
| https://github.com/python/cpython/pull/104227/commits/6e316646293f6e1344470ea50089ff45c48a3d43 |
|
b73e29c
More paranoid bufferwrapper_releasebuf
JelleZijlstra May 7, 2023
| https://github.com/python/cpython/pull/104227/commits/b73e29c6cb78d16c4a5e76ee3368eb4d62dd050c |
|
15ad02d
that did not work
JelleZijlstra May 7, 2023
| https://github.com/python/cpython/pull/104227/commits/15ad02d889fc7781d5efc309eb9287f2e035a806 |
|
9ded873
Update Objects/typeobject.c
JelleZijlstra May 7, 2023
| https://github.com/python/cpython/pull/104227/commits/9ded8731ff27c227ba73ed6edbb7508d49e9048a |
|
3b50138
Update Objects/typeobject.c
JelleZijlstra May 7, 2023
| https://github.com/python/cpython/pull/104227/commits/3b50138960f77d6a52a1623fe5bfeee934191bfc |
|
056efee
Merge remote-tracking branch 'upstream/main' into pep688fix
JelleZijlstra May 7, 2023
| https://github.com/python/cpython/pull/104227/commits/056efee6292af1a1139b75a9b17bb288cf631fd7 |
|
9ee8eb5
Better message for new flag
JelleZijlstra May 7, 2023
| https://github.com/python/cpython/pull/104227/commits/9ee8eb5d59425416bc68cc7dd3d9a4291cbe3cb1 |
|
5536853
More tests
JelleZijlstra May 7, 2023
| https://github.com/python/cpython/pull/104227/commits/5536853ed0f11c7e5bb38163af53e16e51432dc9 |
|
02d7b9c
Merge branch 'main' into pep688fix
JelleZijlstra May 8, 2023
| https://github.com/python/cpython/pull/104227/commits/02d7b9c0143d07ef4df22643ec8b80a3d2e4e580 |
|
Clear filters
| https://github.com/python/cpython/pull/104227/files |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
|
memoryobject.h
| https://github.com/python/cpython/pull/104227/files#diff-66e840eea49a61a0b940b3b3b7b008e0e4355c51e62bb02a4f922c9cfe3c41c9 |
|
pycore_memoryobject.h
| https://github.com/python/cpython/pull/104227/files#diff-111730a458b7b448053f9942d4f189dba4d7c357a287fd4c7deff31c8cff8215 |
|
test_buffer.py
| https://github.com/python/cpython/pull/104227/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff |
|
bytearrayobject.c
| https://github.com/python/cpython/pull/104227/files#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c |
|
memoryobject.c
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
typeobject.c
| https://github.com/python/cpython/pull/104227/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
| Include/cpython/memoryobject.h | https://github.com/python/cpython/pull/104227/files#diff-66e840eea49a61a0b940b3b3b7b008e0e4355c51e62bb02a4f922c9cfe3c41c9 |
|
View file
| https://github.com/JelleZijlstra/cpython/blob/02d7b9c0143d07ef4df22643ec8b80a3d2e4e580/Include/cpython/memoryobject.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/104227/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/104227/files#diff-66e840eea49a61a0b940b3b3b7b008e0e4355c51e62bb02a4f922c9cfe3c41c9 |
|
| https://github.com/python/cpython/pull/104227/files#diff-66e840eea49a61a0b940b3b3b7b008e0e4355c51e62bb02a4f922c9cfe3c41c9 |
| Include/internal/pycore_memoryobject.h | https://github.com/python/cpython/pull/104227/files#diff-111730a458b7b448053f9942d4f189dba4d7c357a287fd4c7deff31c8cff8215 |
|
View file
| https://github.com/JelleZijlstra/cpython/blob/02d7b9c0143d07ef4df22643ec8b80a3d2e4e580/Include/internal/pycore_memoryobject.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/104227/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/104227/files#diff-111730a458b7b448053f9942d4f189dba4d7c357a287fd4c7deff31c8cff8215 |
|
| https://github.com/python/cpython/pull/104227/files#diff-111730a458b7b448053f9942d4f189dba4d7c357a287fd4c7deff31c8cff8215 |
| Lib/test/test_buffer.py | https://github.com/python/cpython/pull/104227/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff |
|
View file
| https://github.com/JelleZijlstra/cpython/blob/02d7b9c0143d07ef4df22643ec8b80a3d2e4e580/Lib/test/test_buffer.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/104227/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/104227/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff |
| kumaraditya303 | https://github.com/kumaraditya303 |
| May 7, 2023 | https://github.com/python/cpython/pull/104227/files#r1186845558 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
| JelleZijlstra | https://github.com/JelleZijlstra |
| May 7, 2023 | https://github.com/python/cpython/pull/104227/files#r1186862151 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
| kumaraditya303 | https://github.com/kumaraditya303 |
| May 7, 2023 | https://github.com/python/cpython/pull/104227/files#r1186862467 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
| JelleZijlstra | https://github.com/JelleZijlstra |
| May 7, 2023 | https://github.com/python/cpython/pull/104227/files#r1186862992 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
| kumaraditya303 | https://github.com/kumaraditya303 |
| May 7, 2023 | https://github.com/python/cpython/pull/104227/files#r1186864972 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
| kumaraditya303 | https://github.com/kumaraditya303 |
| May 7, 2023 | https://github.com/python/cpython/pull/104227/files#r1186866759 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
| JelleZijlstra | https://github.com/JelleZijlstra |
| May 7, 2023 | https://github.com/python/cpython/pull/104227/files#r1186867164 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
| JelleZijlstra | https://github.com/JelleZijlstra |
| May 7, 2023 | https://github.com/python/cpython/pull/104227/files#r1186868625 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
| JelleZijlstra | https://github.com/JelleZijlstra |
| May 7, 2023 | https://github.com/python/cpython/pull/104227/files#r1186928125 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
| JelleZijlstra | https://github.com/JelleZijlstra |
| May 8, 2023 | https://github.com/python/cpython/pull/104227/files#r1187674926 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #104297 | https://github.com/python/cpython/issues/104297 |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
| Objects/bytearrayobject.c | https://github.com/python/cpython/pull/104227/files#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c |
|
View file
| https://github.com/JelleZijlstra/cpython/blob/02d7b9c0143d07ef4df22643ec8b80a3d2e4e580/Objects/bytearrayobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/104227/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/104227/files#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c |
|
| https://github.com/python/cpython/pull/104227/files#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c |
| Objects/memoryobject.c | https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
View file
| https://github.com/JelleZijlstra/cpython/blob/02d7b9c0143d07ef4df22643ec8b80a3d2e4e580/Objects/memoryobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/104227/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
|
| https://github.com/python/cpython/pull/104227/files#diff-7d1cb11da20dc3738b65b0f7381bf02df53132562a9749ba8a22d67a0f05f106 |
| Please reload this page | https://github.com/python/cpython/pull/104227/files |
|
| 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 |