We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adc8ea7 commit 2632257Copy full SHA for 2632257
1 file changed
Misc/NEWS.d/next/Core_and_Builtins/2026-05-18-16-20-18.gh-issue-47169.kE86QZ.rst
@@ -0,0 +1,7 @@
1
+OSError.__str__() now includes the symbolic name of the error code (e.g.
2
+[Errno 2] is now shown as [Errno 2 (ENOENT)]) alongside the numeric value.
3
+The errno definitions were moved from errnomodule.c to a header file in
4
+Objects/ so they are accessible to the exception machinery. A new
5
+OSError_format_errno function searches this header directly at error time to
6
+resolve the symbolic name and render the error output. The numeric value is
7
+preserved for backward compatibility.
0 commit comments