summaryrefslogtreecommitdiffstats
path: root/Doc
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 /Doc
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 'Doc')
-rw-r--r--Doc/lib/libexcs.tex6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/lib/libexcs.tex b/Doc/lib/libexcs.tex
index f52ff0a..b51b7fc 100644
--- a/Doc/lib/libexcs.tex
+++ b/Doc/lib/libexcs.tex
@@ -399,11 +399,15 @@ Raised when an \keyword{assert} statement fails.
\begin{excdesc}{WindowsError}
Raised when a Windows-specific error occurs or when the error number
does not correspond to an \cdata{errno} value. The
- \member{errno} and \member{strerror} values are created from the
+ \member{winerror} and \member{strerror} values are created from the
return values of the \cfunction{GetLastError()} and
\cfunction{FormatMessage()} functions from the Windows Platform API.
+ The \member{errno} value maps the \member{winerror} value to
+ corresponding \code{errno.h} values.
This is a subclass of \exception{OSError}.
\versionadded{2.0}
+\versionchanged[Previous versions put the \cfunction{GetLastError()}
+codes into \member{errno}]{2.5}
\end{excdesc}
\begin{excdesc}{ZeroDivisionError}