René's URL Explorer Experiment


Title: GH-81881: Raise `SpecialFileError` for sockets and devices in `shutil.copyfile` by savannahostrowski · Pull Request #142693 · python/cpython · GitHub

Open Graph Title: GH-81881: Raise `SpecialFileError` for sockets and devices in `shutil.copyfile` by savannahostrowski · Pull Request #142693 · python/cpython

X Title: GH-81881: Raise `SpecialFileError` for sockets and devices in `shutil.copyfile` by savannahostrowski · Pull Request #142693 · python/cpython

Description: The original issue just mentions sockets, but while documenting this I found it very confusing and inconsistent that device files didn't get the same treatment, so I figured I'd fix them all in one go. Issue: gh-81881 📚 Documentation preview 📚: https://cpython-previews--142693.org.readthedocs.build/

Open Graph Description: The original issue just mentions sockets, but while documenting this I found it very confusing and inconsistent that device files didn't get the same treatment, so I figured I'd fix them al...

X Description: The original issue just mentions sockets, but while documenting this I found it very confusing and inconsistent that device files didn't get the same treatment, so I figured I'd fix...

Opengraph URL: https://github.com/python/cpython/pull/142693

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b7db69f2-4ddc-2481-e348-91381a00003b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE76A:141904:879E5F:B276B6:6A517F35
html-safe-noncea5414af79fcfaac4a482c3b493cb1b5f9b08f9d9a998e4cf43bbe675a34f0f1f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzZBOjE0MTkwNDo4NzlFNUY6QjI3NkI2OjZBNTE3RjM1IiwidmlzaXRvcl9pZCI6Ijg5NTg3NjMzODAxOTMwMzIyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6ce4522f3c8352ce4d8a7639b10f71ccc5a5da25512667b626650aef6ba3c285
hovercard-subject-tagpull_request:3099423418
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/142693/files
twitter:imagehttps://avatars.githubusercontent.com/u/8949415?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8949415?s=400&v=4
og:image:altThe original issue just mentions sockets, but while documenting this I found it very confusing and inconsistent that device files didn't get the same treatment, so I figured I'd fix them al...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released01c62704ef24df49056c63892a149b775e1353d
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/142693/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142693%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2F142693%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
Reloadhttps://github.com/python/cpython/pull/142693/files
Reloadhttps://github.com/python/cpython/pull/142693/files
Reloadhttps://github.com/python/cpython/pull/142693/files
Please reload this pagehttps://github.com/python/cpython/pull/142693/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/142693/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
savannahostrowskihttps://github.com/savannahostrowski
python:mainhttps://github.com/python/cpython/tree/main
savannahostrowski:special-file-shutilhttps://github.com/savannahostrowski/cpython/tree/special-file-shutil
Conversation 7 https://github.com/python/cpython/pull/142693
Commits 10 https://github.com/python/cpython/pull/142693/commits
Checks 53 https://github.com/python/cpython/pull/142693/checks
Files changed https://github.com/python/cpython/pull/142693/files
Please reload this pagehttps://github.com/python/cpython/pull/142693/files
GH-81881: Raise SpecialFileError for sockets and devices in shutil.copyfile https://github.com/python/cpython/pull/142693/files#top
Show all changes 10 commits https://github.com/python/cpython/pull/142693/files
582968a Make socket and devices return SpecialFileError savannahostrowski Dec 14, 2025 https://github.com/python/cpython/pull/142693/commits/582968a5e8e8cd9a2957cf53afbf786139cfb585
841e44d 📜🤖 Added by blurb_it. blurb-it[bot] Dec 14, 2025 https://github.com/python/cpython/pull/142693/commits/841e44d08070c3990074024a6e99a33abeea7b01
ed30a99 Fix whats new savannahostrowski Dec 14, 2025 https://github.com/python/cpython/pull/142693/commits/ed30a99c58dcaa8e0e4d2d772b57e27ae58d3141
6c20f23 Fix failing test savannahostrowski Dec 14, 2025 https://github.com/python/cpython/pull/142693/commits/6c20f232e84f4db979cfe176ceefda4db2694d3e
c9827da Fix iOS socket path savannahostrowski Dec 14, 2025 https://github.com/python/cpython/pull/142693/commits/c9827dade05fd3f1e9f47f6f9116454dc1a3e50a
a3bcc38 Merge branch 'main' into special-file-shutil savannahostrowski Dec 14, 2025 https://github.com/python/cpython/pull/142693/commits/a3bcc38c00960267644bd4d201bf055b59308227
49c06c7 Merge branch 'main' into special-file-shutil savannahostrowski Dec 14, 2025 https://github.com/python/cpython/pull/142693/commits/49c06c75bb0a9beda9f62940896bbad22932b85d
d2ef585 Merge branch 'main' into special-file-shutil orsenthil Jun 27, 2026 https://github.com/python/cpython/pull/142693/commits/d2ef585e5f70ca307eb95e599c59db4a2471286a
2ecc0b7 Merge branch 'main' into special-file-shutil savannahostrowski Jun 29, 2026 https://github.com/python/cpython/pull/142693/commits/2ecc0b752c3d7b4434590c15eb4e6c8c1a461b27
78695f1 Merge branch 'main' into special-file-shutil savannahostrowski Jun 29, 2026 https://github.com/python/cpython/pull/142693/commits/78695f13ca8109d92950f36592afebf8a476926b
Clear filters https://github.com/python/cpython/pull/142693/files
Please reload this pagehttps://github.com/python/cpython/pull/142693/files
Please reload this pagehttps://github.com/python/cpython/pull/142693/files
shutil.rst https://github.com/python/cpython/pull/142693/files#diff-f2e20586f33534d9cf4f058fffcedbe5cba1abf0f9e9813968846d7a8cccb719
3.15.rst https://github.com/python/cpython/pull/142693/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
shutil.py https://github.com/python/cpython/pull/142693/files#diff-db8ac59326160713929e0e1973aef54f0280fe9f154ef24d14244909a0e0689b
test_shutil.py https://github.com/python/cpython/pull/142693/files#diff-ed52359d591fff799c0b81414bdfd9a90541cbc3b97b50a7ebaca38ed98062e7
2025-12-14-06-44-34.gh-issue-81881.qancdQ.rst https://github.com/python/cpython/pull/142693/files#diff-79a5fdb4354a2a5ead006655ae600183a3aa9df6354a8a13ee497e3036741912
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L571
Doc/library/shutil.rsthttps://github.com/python/cpython/pull/142693/files#diff-f2e20586f33534d9cf4f058fffcedbe5cba1abf0f9e9813968846d7a8cccb719
View file https://github.com/savannahostrowski/cpython/blob/78695f13ca8109d92950f36592afebf8a476926b/Doc/library/shutil.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142693/{{ revealButtonHref }}
https://github.com/python/cpython/pull/142693/files#diff-f2e20586f33534d9cf4f058fffcedbe5cba1abf0f9e9813968846d7a8cccb719
https://github.com/python/cpython/pull/142693/files#diff-f2e20586f33534d9cf4f058fffcedbe5cba1abf0f9e9813968846d7a8cccb719
https://github.com/python/cpython/pull/142693/files#diff-f2e20586f33534d9cf4f058fffcedbe5cba1abf0f9e9813968846d7a8cccb719
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116
Doc/whatsnew/3.15.rsthttps://github.com/python/cpython/pull/142693/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
View file https://github.com/savannahostrowski/cpython/blob/78695f13ca8109d92950f36592afebf8a476926b/Doc/whatsnew/3.15.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142693/{{ revealButtonHref }}
https://github.com/python/cpython/pull/142693/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
https://github.com/python/cpython/pull/142693/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L572
Lib/shutil.pyhttps://github.com/python/cpython/pull/142693/files#diff-db8ac59326160713929e0e1973aef54f0280fe9f154ef24d14244909a0e0689b
View file https://github.com/savannahostrowski/cpython/blob/78695f13ca8109d92950f36592afebf8a476926b/Lib/shutil.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142693/{{ revealButtonHref }}
https://github.com/python/cpython/pull/142693/files#diff-db8ac59326160713929e0e1973aef54f0280fe9f154ef24d14244909a0e0689b
https://github.com/python/cpython/pull/142693/files#diff-db8ac59326160713929e0e1973aef54f0280fe9f154ef24d14244909a0e0689b
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L573
Lib/test/test_shutil.pyhttps://github.com/python/cpython/pull/142693/files#diff-ed52359d591fff799c0b81414bdfd9a90541cbc3b97b50a7ebaca38ed98062e7
View file https://github.com/savannahostrowski/cpython/blob/78695f13ca8109d92950f36592afebf8a476926b/Lib/test/test_shutil.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142693/{{ revealButtonHref }}
https://github.com/python/cpython/pull/142693/files#diff-ed52359d591fff799c0b81414bdfd9a90541cbc3b97b50a7ebaca38ed98062e7
https://github.com/python/cpython/pull/142693/files#diff-ed52359d591fff799c0b81414bdfd9a90541cbc3b97b50a7ebaca38ed98062e7
https://github.com/python/cpython/pull/142693/files#diff-ed52359d591fff799c0b81414bdfd9a90541cbc3b97b50a7ebaca38ed98062e7
https://github.com/python/cpython/pull/142693/files#diff-ed52359d591fff799c0b81414bdfd9a90541cbc3b97b50a7ebaca38ed98062e7
https://github.com/python/cpython/pull/142693/files#diff-ed52359d591fff799c0b81414bdfd9a90541cbc3b97b50a7ebaca38ed98062e7
Misc/NEWS.d/next/Library/2025-12-14-06-44-34.gh-issue-81881.qancdQ.rsthttps://github.com/python/cpython/pull/142693/files#diff-79a5fdb4354a2a5ead006655ae600183a3aa9df6354a8a13ee497e3036741912
View file https://github.com/savannahostrowski/cpython/blob/78695f13ca8109d92950f36592afebf8a476926b/Misc/NEWS.d/next/Library/2025-12-14-06-44-34.gh-issue-81881.qancdQ.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142693/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/142693/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.