You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-109714: Pass the file name and a message when raising OSError subclasses
* Pass the file name as the filename argument instead of interpolating it
into the message, so that it is available as the filename attribute:
in shutil, logging.config, turtle, zipfile.Path and importlib.resources.
* Give an explicit message where the one derived from errno would be
misleading: "timed out" for timeouts which are not connection timeouts,
and "No such resource" in importlib.resources.
* In Tools, which is run with older Pythons too, pass errno explicitly.
* Add _PyErr_SetOSErrorWithMessage() for raising an OSError subclass with
an errno which is not the default one of the class.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments