Skip to content

Commit 2632257

Browse files
committed
add : blurb added.
1 parent adc8ea7 commit 2632257

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)