mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Mark the new & changed items.
This commit is contained in:
parent
6481ba6251
commit
b44e75339a
2 changed files with 18 additions and 9 deletions
|
|
@ -94,6 +94,7 @@ index used on a mapping or sequence is invalid: \exception{IndexError},
|
||||||
\end{excdesc}
|
\end{excdesc}
|
||||||
|
|
||||||
\begin{excdesc}{EnvironmentError}
|
\begin{excdesc}{EnvironmentError}
|
||||||
|
\versionadded{1.5.2}
|
||||||
The base class for exceptions that
|
The base class for exceptions that
|
||||||
can occur outside the Python system: \exception{IOError},
|
can occur outside the Python system: \exception{IOError},
|
||||||
\exception{OSError}. When exceptions of this type are created with a
|
\exception{OSError}. When exceptions of this type are created with a
|
||||||
|
|
@ -145,20 +146,24 @@ Raised when an \keyword{assert} statement fails.
|
||||||
\end{excdesc}
|
\end{excdesc}
|
||||||
|
|
||||||
\begin{excdesc}{FloatingPointError}
|
\begin{excdesc}{FloatingPointError}
|
||||||
Raised when a floating point operation fails. This exception is
|
Raised when a floating point operation fails. This exception is
|
||||||
always defined, but can only be raised when Python is configured with
|
always defined, but can only be raised when Python is configured
|
||||||
the \code{--with-fpectl} option, or the \constant{WANT_SIGFPE_HANDLER}
|
with the \code{--with-fpectl} option, or the
|
||||||
symbol is defined in the \file{config.h} file.
|
\constant{WANT_SIGFPE_HANDLER} symbol is defined in the
|
||||||
|
\file{config.h} file.
|
||||||
\end{excdesc}
|
\end{excdesc}
|
||||||
|
|
||||||
\begin{excdesc}{IOError}
|
\begin{excdesc}{IOError}
|
||||||
|
\versionchanged{1.5.2}
|
||||||
% XXXJH xrefs here
|
% XXXJH xrefs here
|
||||||
Raised when an I/O operation (such as a \keyword{print} statement, the
|
Raised when an I/O operation (such as a \keyword{print} statement,
|
||||||
built-in \function{open()} function or a method of a file object) fails
|
the built-in \function{open()} function or a method of a file
|
||||||
for an I/O-related reason, e.g., ``file not found'' or ``disk full''.
|
object) fails for an I/O-related reason, e.g., ``file not found'' or
|
||||||
|
``disk full''.
|
||||||
|
|
||||||
This class is derived \exception{EnvironmentError}. See the discussion
|
This class is derived \exception{EnvironmentError}. See the
|
||||||
above for more information on exception instance attributes.
|
discussion above for more information on exception instance
|
||||||
|
attributes.
|
||||||
\end{excdesc}
|
\end{excdesc}
|
||||||
|
|
||||||
\begin{excdesc}{ImportError}
|
\begin{excdesc}{ImportError}
|
||||||
|
|
@ -209,6 +214,7 @@ above for more information on exception instance attributes.
|
||||||
\end{excdesc}
|
\end{excdesc}
|
||||||
|
|
||||||
\begin{excdesc}{OSError}
|
\begin{excdesc}{OSError}
|
||||||
|
\versionadded{1.5.2}
|
||||||
%xref for os module
|
%xref for os module
|
||||||
This class is derived from \exception{EnvironmentError} and is used
|
This class is derived from \exception{EnvironmentError} and is used
|
||||||
primarily as the by the \module{os} module's \code{os.error}
|
primarily as the by the \module{os} module's \code{os.error}
|
||||||
|
|
|
||||||
|
|
@ -51,11 +51,13 @@ unchanged.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{getsize}{filename}
|
\begin{funcdesc}{getsize}{filename}
|
||||||
|
\versionadded{1.5.2}
|
||||||
Return the size, in bytes, of \var{filename}. Raise
|
Return the size, in bytes, of \var{filename}. Raise
|
||||||
\exception{os.error} if the file does not exist or is inaccessible.
|
\exception{os.error} if the file does not exist or is inaccessible.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{getmtime}{filename}
|
\begin{funcdesc}{getmtime}{filename}
|
||||||
|
\versionadded{1.5.2}
|
||||||
Return the time of last modification of \var{filename}. The return
|
Return the time of last modification of \var{filename}. The return
|
||||||
value is integer giving the number of seconds since the epoch (see the
|
value is integer giving the number of seconds since the epoch (see the
|
||||||
\module{time} module. Raise \exception{os.error} if the file does not
|
\module{time} module. Raise \exception{os.error} if the file does not
|
||||||
|
|
@ -63,6 +65,7 @@ exist or is inaccessible.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{getatime}{filename}
|
\begin{funcdesc}{getatime}{filename}
|
||||||
|
\versionadded{1.5.2}
|
||||||
Return the time of last access of \var{filename}. The return
|
Return the time of last access of \var{filename}. The return
|
||||||
value is integer giving the number of seconds since the epoch (see the
|
value is integer giving the number of seconds since the epoch (see the
|
||||||
\module{time} module. Raise \exception{os.error} if the file does not
|
\module{time} module. Raise \exception{os.error} if the file does not
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue