summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-05-11 13:28:43 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-05-11 13:28:43 (GMT)
commit879768dd97f98626c919a460a90dd0d54855de9c (patch)
tree8813f6d751a0087d8402860bc82e54ca87f0028c /Misc
parent38e3b7d2d36a2029ad86c9c23d031e5350e80d35 (diff)
downloadcpython-879768dd97f98626c919a460a90dd0d54855de9c.zip
cpython-879768dd97f98626c919a460a90dd0d54855de9c.tar.gz
cpython-879768dd97f98626c919a460a90dd0d54855de9c.tar.bz2
Change WindowsError to carry the Win32 error code in winerror,
and the DOS error code in errno. Revert changes where WindowsError catch blocks unnecessarily special-case OSError.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 4e1aa9e..0a769b7 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,11 @@ What's New in Python 2.5 alpha 2?
Core and builtins
-----------------
+- WindowsError now has two error code attributes: errno, which carries
+ the error values from errno.h, and winerror, which carries the error
+ values from winerror.h. Previous versions put the winerror.h values
+ (from GetLastError()) into the errno attribute.
+
- Patch #1475845: Raise IndentationError for unexpected indent.
- Patch #1479181: split open() and file() from being aliases for each other.