Skip to content

GH-81881: Raise SpecialFileError for sockets and devices in shutil.copyfile#142693

Open
savannahostrowski wants to merge 7 commits intopython:mainfrom
savannahostrowski:special-file-shutil
Open

GH-81881: Raise SpecialFileError for sockets and devices in shutil.copyfile#142693
savannahostrowski wants to merge 7 commits intopython:mainfrom
savannahostrowski:special-file-shutil

Conversation

@savannahostrowski
Copy link
Copy Markdown
Member

@savannahostrowski savannahostrowski commented Dec 14, 2025

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.


📚 Documentation preview 📚: https://cpython-previews--142693.org.readthedocs.build/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant