| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3f6757ff-a429-5de9-2e44-00c2373d47e5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D450:53234:60250C2:86F1B0E:6A5011D0 |
| html-safe-nonce | 18ddf6ddd47ec135687a8f62c92965b195dc323c9ec7299c55a6cb787f14e562 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDUwOjUzMjM0OjYwMjUwQzI6ODZGMUIwRTo2QTUwMTFEMCIsInZpc2l0b3JfaWQiOiI4MzI3NjAxMzc1Nzc4MTgxNTg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 051f9c0a0d6ef8ff152e96fabdad82901db89760e511ecdc680f56d5ba5c3c49 |
| hovercard-subject-tag | pull_request:3713718452 |
| 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/150142/files |
| twitter:image | https://avatars.githubusercontent.com/u/5606705?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5606705?s=400&v=4 |
| og:image:alt | Original Bug Report:
Bug report
Bug description:
BaseEventLoop._sock_sendfile_fallback (https://github.com/python/cpython/blob/main/Lib/asyncio/base_events.py#L971) erroneously doesn't seek whe... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | fe4f38b24922a1ce81c1708c3793b47c185599b9144ab94f6ca846b00698058d |
| 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 | 42b6390c91978a16f9196c38c7a00e9bf21f37e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/150142/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F150142%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| 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 |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| 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/enterprise/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%2F150142%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/150142/files |
| Reload | https://github.com/python/cpython/pull/150142/files |
| Reload | https://github.com/python/cpython/pull/150142/files |
| Please reload this page | https://github.com/python/cpython/pull/150142/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/150142/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.6k
| 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.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
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 and quality
| 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 |
| grantlouisherman | https://github.com/grantlouisherman |
| python:main | https://github.com/python/cpython/tree/main |
| grantlouisherman:bugfix-150107-asyncio-ignore-0-offset | https://github.com/grantlouisherman/cpython/tree/bugfix-150107-asyncio-ignore-0-offset |
|
Conversation
21
| https://github.com/python/cpython/pull/150142 |
|
Commits
26
| https://github.com/python/cpython/pull/150142/commits |
|
Checks
48
| https://github.com/python/cpython/pull/150142/checks |
|
Files changed
| https://github.com/python/cpython/pull/150142/files |
| Please reload this page | https://github.com/python/cpython/pull/150142/files |
|
gh-150107: adding hasattr check on offset to include if available
| https://github.com/python/cpython/pull/150142/files#top |
|
Show all changes
26 commits
| https://github.com/python/cpython/pull/150142/files |
|
a8f0c9c
bugfix(150107): adding isinstance check on offset to include if avail…
grantlouisherman May 20, 2026
| https://github.com/python/cpython/pull/150142/commits/a8f0c9c995af33d746fa8b33df44e92b055219cd |
|
7e7cba2
Merge branch 'main' into bugfix-150107-asyncio-ignore-0-offset
grantlouisherman May 20, 2026
| https://github.com/python/cpython/pull/150142/commits/7e7cba25568821cc0abcb33180dc942ba67feaae |
|
4a05d1a
Merge branch 'main' into bugfix-150107-asyncio-ignore-0-offset
grantlouisherman May 20, 2026
| https://github.com/python/cpython/pull/150142/commits/4a05d1a4c2a1f1da9282de2684a3d47c60612855 |
|
6b5e93c
Merge branch 'main' into bugfix-150107-asyncio-ignore-0-offset
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/6b5e93cba921f1fc2b06481d2bec346068c89dc8 |
|
d2a9ce0
📜🤖 Added by blurb_it.
blurb-it[bot] May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/d2a9ce0dd026e53635dfc28aaf0a74c987574848 |
|
a11d3b3
Merge branch 'main' into bugfix-150107-asyncio-ignore-0-offset
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/a11d3b34ed3da484f1727a38739b711a673b2ef9 |
|
4587db4
Merge branch 'main' into bugfix-150107-asyncio-ignore-0-offset
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/4587db4962112e88f49b0277b777996eb10ed40a |
|
b525cb2
addressing PR comments
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/b525cb2c9b6cb75e567bfad905dea820f04c447f |
|
f247be0
addressing PR comments
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/f247be00a639854a599d2465c198fd05af9fe52e |
|
84cdc6c
fixing lints
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/84cdc6c41fffb7e9382ecc71a0d728b8ef3fffed |
|
25ab08e
Merge branch 'main' into bugfix-150107-asyncio-ignore-0-offset
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/25ab08ebfb736bfc6863e8e7212ade2b64490554 |
|
801932f
adding unit test
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/801932f11e159b1dca6291c3dafceb980516114c |
|
0679bcb
Merge branch 'main' into bugfix-150107-asyncio-ignore-0-offset
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/0679bcba63711ae047c62c03c42ca3497d0f541b |
|
800a2d5
fixing test failures and lint errors
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/800a2d51a995e9c2fe2a0ea66984720845abd7b9 |
|
2af3015
fixing windows tests
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/2af301529773c7d782b88a4c901c006bd49dd774 |
|
027dec5
Merge branch 'main' into bugfix-150107-asyncio-ignore-0-offset
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/027dec56eaca0336735a5b4129e55fbda3728e0d |
|
79857ff
Merge branch 'main' into bugfix-150107-asyncio-ignore-0-offset
grantlouisherman May 21, 2026
| https://github.com/python/cpython/pull/150142/commits/79857ffbc416406a4ba0cae8d19e6980a64c17bb |
|
ded4a36
Merge branch 'main' into bugfix-150107-asyncio-ignore-0-offset
grantlouisherman May 22, 2026
| https://github.com/python/cpython/pull/150142/commits/ded4a363c603f887d0e61ba877e783921a7fa9a3 |
|
aaa1a2d
gh-149995: Update typing.py docstrings and documentation (#149996)
JelleZijlstra May 22, 2026
| https://github.com/python/cpython/pull/150142/commits/aaa1a2ddef44d4dfe3e3b12334c08b2625d1217a |
|
6b3c418
gh-133998: Fix gzip file creation when time is out of range (GH-134278)
adang1345 May 22, 2026
| https://github.com/python/cpython/pull/150142/commits/6b3c418b4c504729cc7cef9188a18fdad7727c68 |
|
0f84205
gh-137571: Protect against possible UnboundLocalError in gzip._GzipRe…
serhiy-storchaka May 22, 2026
| https://github.com/python/cpython/pull/150142/commits/0f8420523e913f0af1a959e9ae6b4170a6947bf9 |
|
68a2765
gh-149902: Remove dead packaging docs link and add a new section for …
miameows May 22, 2026
| https://github.com/python/cpython/pull/150142/commits/68a27652debc7fb2a3bcf60741ca92142cfc071e |
|
344f35d
gh-91372: Add mtime to gzip.open() (GH-32310)
ellaellela May 22, 2026
| https://github.com/python/cpython/pull/150142/commits/344f35d404408e115212bf834aa15443fe7ae693 |
|
403322e
gh-149879: Fix test_c_locale_coercion on Cygwin (#150250)
vstinner May 22, 2026
| https://github.com/python/cpython/pull/150142/commits/403322e15165d9ae294ec035aa7813a332d99abc |
|
7b50ffc
Remove 'expat' dependency for Linux in `Misc/Brewfile` (#150118)
brettcannon May 22, 2026
| https://github.com/python/cpython/pull/150142/commits/7b50ffcaabe83f0936f96012c390fb37cf8b71f2 |
|
9593f8b
Merge branch 'main' into bugfix-150107-asyncio-ignore-0-offset
grantlouisherman May 22, 2026
| https://github.com/python/cpython/pull/150142/commits/9593f8b2be5c8235ec55573bf71e4897f082d6fd |
|
Clear filters
| https://github.com/python/cpython/pull/150142/files |
| Please reload this page | https://github.com/python/cpython/pull/150142/files |
| Please reload this page | https://github.com/python/cpython/pull/150142/files |
|
base_events.py
| https://github.com/python/cpython/pull/150142/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344 |
|
windows_events.py
| https://github.com/python/cpython/pull/150142/files#diff-4d950142ac4382096cb08d3d7f9b377ff8208085ce5d5f76ad0d0dadc7a77205 |
|
test_sendfile.py
| https://github.com/python/cpython/pull/150142/files#diff-711b6f68342493b9a0f3fc828d2e8383be9996bd8c2513e807d11b5bdbb84a8f |
|
2026-05-21-14-17-29.gh-issue-150107.hwPKW6.rst
| https://github.com/python/cpython/pull/150142/files#diff-2b9b4244d985678f03c3973f0c8edd6e22f5ff960e2ff96ea62ac73b09896b59 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L379 |
| Lib/asyncio/base_events.py | https://github.com/python/cpython/pull/150142/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344 |
|
View file
| https://github.com/grantlouisherman/cpython/blob/9593f8b2be5c8235ec55573bf71e4897f082d6fd/Lib/asyncio/base_events.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/150142/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/150142/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344 |
| Please reload this page | https://github.com/python/cpython/pull/150142/files |
|
| https://github.com/python/cpython/pull/150142/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344 |
|
| https://github.com/python/cpython/pull/150142/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344 |
|
| https://github.com/python/cpython/pull/150142/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344 |
|
| https://github.com/python/cpython/pull/150142/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L379 |
| Lib/asyncio/windows_events.py | https://github.com/python/cpython/pull/150142/files#diff-4d950142ac4382096cb08d3d7f9b377ff8208085ce5d5f76ad0d0dadc7a77205 |
|
View file
| https://github.com/grantlouisherman/cpython/blob/9593f8b2be5c8235ec55573bf71e4897f082d6fd/Lib/asyncio/windows_events.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/150142/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/150142/files#diff-4d950142ac4382096cb08d3d7f9b377ff8208085ce5d5f76ad0d0dadc7a77205 |
| grantlouisherman | https://github.com/grantlouisherman |
| May 21, 2026 | https://github.com/python/cpython/pull/150142/files#r3284131144 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @vstinner | https://github.com/vstinner |
| #112337 | https://github.com/python/cpython/pull/112337 |
| Please reload this page | https://github.com/python/cpython/pull/150142/files |
|
| https://github.com/python/cpython/pull/150142/files#diff-4d950142ac4382096cb08d3d7f9b377ff8208085ce5d5f76ad0d0dadc7a77205 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L380 |
| Lib/test/test_asyncio/test_sendfile.py | https://github.com/python/cpython/pull/150142/files#diff-711b6f68342493b9a0f3fc828d2e8383be9996bd8c2513e807d11b5bdbb84a8f |
|
View file
| https://github.com/grantlouisherman/cpython/blob/9593f8b2be5c8235ec55573bf71e4897f082d6fd/Lib/test/test_asyncio/test_sendfile.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/150142/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/150142/files#diff-711b6f68342493b9a0f3fc828d2e8383be9996bd8c2513e807d11b5bdbb84a8f |
| Please reload this page | https://github.com/python/cpython/pull/150142/files |
| Please reload this page | https://github.com/python/cpython/pull/150142/files |
|
| https://github.com/python/cpython/pull/150142/files#diff-711b6f68342493b9a0f3fc828d2e8383be9996bd8c2513e807d11b5bdbb84a8f |
| Misc/NEWS.d/next/Core_and_Builtins/2026-05-21-14-17-29.gh-issue-150107.hwPKW6.rst | https://github.com/python/cpython/pull/150142/files#diff-2b9b4244d985678f03c3973f0c8edd6e22f5ff960e2ff96ea62ac73b09896b59 |
|
View file
| https://github.com/grantlouisherman/cpython/blob/9593f8b2be5c8235ec55573bf71e4897f082d6fd/Misc/NEWS.d/next/Core_and_Builtins/2026-05-21-14-17-29.gh-issue-150107.hwPKW6.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/150142/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/150142/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 |