| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f6bb7943-3edf-7bee-dad1-a4c55516fcec |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B488:1025CE:850763:B21E37:6969BC5A |
| html-safe-nonce | 0a72b602654673d2a07d11d76be8ea9f0d1a040cf05662e3883c843d65990ac9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDg4OjEwMjVDRTo4NTA3NjM6QjIxRTM3OjY5NjlCQzVBIiwidmlzaXRvcl9pZCI6IjI3OTg5MDE3ODQ5NjY0MjEzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e450d7dbc02622a3e808378c387033407203423bd2d33f4e269b715749eff6cb |
| hovercard-subject-tag | pull_request:1293641767 |
| 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/103094/files |
| twitter:image | https://avatars.githubusercontent.com/u/13780613?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13780613?s=400&v=4 |
| og:image:alt | Issue: gh-103092 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/103094/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F103094%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%2F103094%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/103094/files |
| Reload | https://github.com/python/cpython/pull/103094/files |
| Reload | https://github.com/python/cpython/pull/103094/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/103094/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/103094/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 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| python:main | https://github.com/python/cpython/tree/main |
| erlend-aasland:isolate-socket | https://github.com/erlend-aasland/cpython/tree/isolate-socket |
|
Conversation
10
| https://github.com/python/cpython/pull/103094 |
|
Commits
24
| https://github.com/python/cpython/pull/103094/commits |
|
Checks
0
| https://github.com/python/cpython/pull/103094/checks |
|
Files changed
| https://github.com/python/cpython/pull/103094/files |
| Please reload this page | https://github.com/python/cpython/pull/103094/files |
|
gh-103092: Isolate socket
| https://github.com/python/cpython/pull/103094/files#top |
|
Show all changes
24 commits
| https://github.com/python/cpython/pull/103094/files |
|
4a7c6d9
Establish global state
erlend-aasland Mar 11, 2023
| https://github.com/python/cpython/pull/103094/commits/4a7c6d9f58421473d6f5d03fe331ba0c70a8824b |
|
220a0aa
Add sock_type to state
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/220a0aa56928e8b68d29d75f56fdbd97d5c9e868 |
|
94ca00c
Add exceptions to state
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/94ca00c5eec32d0ac08ffc94a6ec6e0f83bc8472 |
|
fc9cdce
Add accept4_works to state
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/fc9cdcef4fc4545f33d39d1d080f8d6b156d29b1 |
|
29b4d1c
Add sock_cloexec_works to state
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/29b4d1c20a50a79c6680cd6e01a6fcf55580aaa6 |
|
93a2b62
Add defaulttimeout to state
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/93a2b621b80d22d027b2eb490ead6fdbf477910e |
|
4164f96
Refactor: replace state query with param in set_herror()
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/4164f96eb1ed0819a7081d42700d8e069599cf82 |
|
dc740d1
Refactor: replace state query with param in set_gaierror()
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/dc740d1454b7ad358b75f16300b8e148bcfb3a75 |
|
abf00c3
Refactor: replace state query with param in new_sockobject()
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/abf00c3a7004a8efc51477e2f1dde98608c0c385 |
|
9c1c9c6
Refactor: replace state query with param in init_sockobject()
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/9c1c9c63543b740bbb8dea6c61882530de2c8265 |
|
82c00c4
Refactor: replace state query with param in gethost_common()
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/82c00c4e3e4cdf6f035ca72b2b61c4ab6e41e3b7 |
|
72e69e3
Refactor: replace state query with param in sock_get_api()
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/72e69e35ee0a8e31d15b20f8148fb6a8d8241b0b |
|
274c412
Refactor: replace state query with param in setipaddr()
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/274c412a9f6905b4da0a2f8108d6dffa8120f582 |
|
d839af0
Add state pointer to PySocketSockObject
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/d839af07afc2e43a8656e9d3482a180a35e09bad |
|
13d14da
Use sock pointer from sock type context where applicable
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/13d14daddddff1d1ceeeb7081088735de841c8af |
|
b4edf64
Multi-phase init
erlend-aasland Mar 12, 2023
| https://github.com/python/cpython/pull/103094/commits/b4edf64aaf1e1236ad35e5b44bc6ad14c296eb9c |
|
c51a696
Remove unneeded forward decl
erlend-aasland Mar 30, 2023
| https://github.com/python/cpython/pull/103094/commits/c51a696ecab64d9df5ba114dc9fdd5ed464d0326 |
|
d8e448f
Add test
erlend-aasland Mar 30, 2023
| https://github.com/python/cpython/pull/103094/commits/d8e448f4c2ba063a8a30575e8f5a11f2e6a7df57 |
|
4332571
fixup dealloc
erlend-aasland Mar 30, 2023
| https://github.com/python/cpython/pull/103094/commits/4332571daf7b041ae074f939d811d2864faa95da |
|
6a00c54
Add NEWS
erlend-aasland Apr 3, 2023
| https://github.com/python/cpython/pull/103094/commits/6a00c54a11467c9e2cb456ee04abe0c57e58123e |
|
e5027c2
Style: remove unneeded parens
erlend-aasland Apr 4, 2023
| https://github.com/python/cpython/pull/103094/commits/e5027c21dac2dda7cc2895b8ea84b551d3312dae |
|
98d1566
Pull in main
erlend-aasland Apr 4, 2023
| https://github.com/python/cpython/pull/103094/commits/98d1566576f7902b46bc40e90f3faefd21a6a4a8 |
|
e5827e7
Sync with main
erlend-aasland Apr 8, 2023
| https://github.com/python/cpython/pull/103094/commits/e5827e77cab5da4831f5143d1ef491f0896177c1 |
|
2019a93
Simplify ADD_EXC macro further
erlend-aasland Apr 8, 2023
| https://github.com/python/cpython/pull/103094/commits/2019a93bd3c0b225cd5ba08d0b3b85d90010209d |
|
Clear filters
| https://github.com/python/cpython/pull/103094/files |
| Please reload this page | https://github.com/python/cpython/pull/103094/files |
| Please reload this page | https://github.com/python/cpython/pull/103094/files |
|
test_socket.py
| https://github.com/python/cpython/pull/103094/files#diff-ce79808e12f7a252c1747c23ba11810d4dc22ce0af4b9419bac647ad3a2a8389 |
|
2023-04-03-23-43-12.gh-issue-103092.3xqk4y.rst
| https://github.com/python/cpython/pull/103094/files#diff-f05648658552f6557fb590b58fe9a28544947c728d6a25af4c31ece19339742f |
|
socketmodule.c
| https://github.com/python/cpython/pull/103094/files#diff-412f0023cab7bc5669c6c1e710a6f37e7c3c387d299794b5fe82268a10223b29 |
|
socketmodule.h
| https://github.com/python/cpython/pull/103094/files#diff-95a6e2503e5a5648674268d9f6cd9c45a84a55e118b794c03bbc613390b91ccc |
|
globals-to-fix.tsv
| https://github.com/python/cpython/pull/103094/files#diff-8d1e9a0d5771dfc3a628047509e2d4a1027327bd89392e5a3ec5fbd3d08cfa19 |
| Lib/test/test_socket.py | https://github.com/python/cpython/pull/103094/files#diff-ce79808e12f7a252c1747c23ba11810d4dc22ce0af4b9419bac647ad3a2a8389 |
|
View file
| https://github.com/erlend-aasland/cpython/blob/2019a93bd3c0b225cd5ba08d0b3b85d90010209d/Lib/test/test_socket.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/103094/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/103094/files#diff-ce79808e12f7a252c1747c23ba11810d4dc22ce0af4b9419bac647ad3a2a8389 |
|
| https://github.com/python/cpython/pull/103094/files#diff-ce79808e12f7a252c1747c23ba11810d4dc22ce0af4b9419bac647ad3a2a8389 |
|
| https://github.com/python/cpython/pull/103094/files#diff-ce79808e12f7a252c1747c23ba11810d4dc22ce0af4b9419bac647ad3a2a8389 |
|
| https://github.com/python/cpython/pull/103094/files#diff-ce79808e12f7a252c1747c23ba11810d4dc22ce0af4b9419bac647ad3a2a8389 |
| Misc/NEWS.d/next/Library/2023-04-03-23-43-12.gh-issue-103092.3xqk4y.rst | https://github.com/python/cpython/pull/103094/files#diff-f05648658552f6557fb590b58fe9a28544947c728d6a25af4c31ece19339742f |
|
View file
| https://github.com/erlend-aasland/cpython/blob/2019a93bd3c0b225cd5ba08d0b3b85d90010209d/Misc/NEWS.d/next/Library/2023-04-03-23-43-12.gh-issue-103092.3xqk4y.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/103094/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/103094/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 |