mirror of
https://github.com/python/cpython.git
synced 2025-09-10 02:36:56 +00:00
Update version numbering from 1.6 to 2.0.
This commit is contained in:
parent
61b49b3d6b
commit
30f76ffd00
11 changed files with 16 additions and 16 deletions
|
@ -61,7 +61,7 @@ TOOLSDIR= tools
|
||||||
|
|
||||||
# This is the *documentation* release, and is used to construct the file
|
# This is the *documentation* release, and is used to construct the file
|
||||||
# names of the downloadable tarballs.
|
# names of the downloadable tarballs.
|
||||||
RELEASE=1.6a2
|
RELEASE=2.0b1
|
||||||
|
|
||||||
|
|
||||||
# These must be declared phony since there
|
# These must be declared phony since there
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
\moduleauthor{Eric S. Raymond}{esr@thyrsus.com}
|
\moduleauthor{Eric S. Raymond}{esr@thyrsus.com}
|
||||||
\sectionauthor{Eric S. Raymond}{esr@thyrsus.com}
|
\sectionauthor{Eric S. Raymond}{esr@thyrsus.com}
|
||||||
|
|
||||||
\versionadded{1.6}
|
\versionadded{2.0}
|
||||||
|
|
||||||
The \module{curses.ascii} module supplies name constants for
|
The \module{curses.ascii} module supplies name constants for
|
||||||
\ASCII{} characters and functions to test membership in various
|
\ASCII{} characters and functions to test membership in various
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
\sectionauthor{Skip Montanaro}{skip@mojam.com}
|
\sectionauthor{Skip Montanaro}{skip@mojam.com}
|
||||||
\modulesynopsis{Register and execute cleanup functions.}
|
\modulesynopsis{Register and execute cleanup functions.}
|
||||||
|
|
||||||
\versionadded{1.6}
|
\versionadded{2.0}
|
||||||
|
|
||||||
The \module{atexit} module defines a single function to register
|
The \module{atexit} module defines a single function to register
|
||||||
cleanup functions. Functions thus registered are automatically
|
cleanup functions. Functions thus registered are automatically
|
||||||
|
|
|
@ -298,13 +298,13 @@ For class exceptions, \function{str()} returns only the message.
|
||||||
Raised when a reference is made to a local variable in a function or
|
Raised when a reference is made to a local variable in a function or
|
||||||
method, but no value has been bound to that variable. This is a
|
method, but no value has been bound to that variable. This is a
|
||||||
subclass of \exception{NameError}.
|
subclass of \exception{NameError}.
|
||||||
\versionadded{1.6}
|
\versionadded{2.0}
|
||||||
\end{excdesc}
|
\end{excdesc}
|
||||||
|
|
||||||
\begin{excdesc}{UnicodeError}
|
\begin{excdesc}{UnicodeError}
|
||||||
Raised when a Unicode-related encoding or decoding error occurs. It
|
Raised when a Unicode-related encoding or decoding error occurs. It
|
||||||
is a subclass of \exception{ValueError}.
|
is a subclass of \exception{ValueError}.
|
||||||
\versionadded{1.6}
|
\versionadded{2.0}
|
||||||
\end{excdesc}
|
\end{excdesc}
|
||||||
|
|
||||||
\begin{excdesc}{ValueError}
|
\begin{excdesc}{ValueError}
|
||||||
|
@ -321,7 +321,7 @@ For class exceptions, \function{str()} returns only the message.
|
||||||
return values of the \cfunction{GetLastError()} and
|
return values of the \cfunction{GetLastError()} and
|
||||||
\cfunction{FormatMessage()} functions from the Windows Platform API.
|
\cfunction{FormatMessage()} functions from the Windows Platform API.
|
||||||
This is a subclass of \exception{OSError}.
|
This is a subclass of \exception{OSError}.
|
||||||
\versionadded{1.6}
|
\versionadded{2.0}
|
||||||
\end{excdesc}
|
\end{excdesc}
|
||||||
|
|
||||||
\begin{excdesc}{ZeroDivisionError}
|
\begin{excdesc}{ZeroDivisionError}
|
||||||
|
|
|
@ -669,7 +669,7 @@ integer \var{i}, e.g., \code{unichr(97)} returns the string
|
||||||
\code{u'a'}. This is the inverse of \function{ord()} for Unicode
|
\code{u'a'}. This is the inverse of \function{ord()} for Unicode
|
||||||
strings. The argument must be in the range [0..65535], inclusive.
|
strings. The argument must be in the range [0..65535], inclusive.
|
||||||
\exception{ValueError} is raised otherwise.
|
\exception{ValueError} is raised otherwise.
|
||||||
\versionadded{1.6}
|
\versionadded{2.0}
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{unicode}{string\optional{, encoding='utf-8'\optional{, errors='strict'}}}
|
\begin{funcdesc}{unicode}{string\optional{, encoding='utf-8'\optional{, errors='strict'}}}
|
||||||
|
@ -677,7 +677,7 @@ Decodes \var{string} using the codec for \var{encoding}. Error
|
||||||
handling is done according to \var{errors}. The default behavior is
|
handling is done according to \var{errors}. The default behavior is
|
||||||
to decode UTF-8 in strict mode, meaning that encoding errors raise
|
to decode UTF-8 in strict mode, meaning that encoding errors raise
|
||||||
\exception{ValueError}.
|
\exception{ValueError}.
|
||||||
\versionadded{1.6}
|
\versionadded{2.0}
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{vars}{\optional{object}}
|
\begin{funcdesc}{vars}{\optional{object}}
|
||||||
|
|
|
@ -716,7 +716,7 @@ If \var{times} is \code{None}, then the file's access and modified
|
||||||
times are set to the current time. Otherwise, \var{times} must be a
|
times are set to the current time. Otherwise, \var{times} must be a
|
||||||
2-tuple of numbers, of the form \code{(\var{atime}, \var{mtime})}
|
2-tuple of numbers, of the form \code{(\var{atime}, \var{mtime})}
|
||||||
which is used to set the access and modified times, respectively.
|
which is used to set the access and modified times, respectively.
|
||||||
\versionchanged[added support for \code{None} for \var{times}]{1.6}
|
\versionchanged[added support for \code{None} for \var{times}]{2.0}
|
||||||
Availability: Macintosh, \UNIX{}, Windows.
|
Availability: Macintosh, \UNIX{}, Windows.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
|
|
|
@ -496,7 +496,7 @@ Notes:
|
||||||
\begin{description}
|
\begin{description}
|
||||||
\item[(1)] The C implementation of Python has historically accepted
|
\item[(1)] The C implementation of Python has historically accepted
|
||||||
multiple parameters and implicitly joined them into a tuple; this
|
multiple parameters and implicitly joined them into a tuple; this
|
||||||
will no longer work in Python 1.6. Use of this misfeature has been
|
no longer works in Python 2.0. Use of this misfeature has been
|
||||||
deprecated since Python 1.4.
|
deprecated since Python 1.4.
|
||||||
|
|
||||||
\item[(2)] Raises an exception when \var{x} is not a list object. The
|
\item[(2)] Raises an exception when \var{x} is not a list object. The
|
||||||
|
|
|
@ -334,9 +334,9 @@ A tuple containing the five components of the version number:
|
||||||
\var{serial}. All values except \var{releaselevel} are integers; the
|
\var{serial}. All values except \var{releaselevel} are integers; the
|
||||||
release level is \code{'alpha'}, \code{'beta'},
|
release level is \code{'alpha'}, \code{'beta'},
|
||||||
\code{'candidate'}, or \code{'final'}. The \code{version_info} value
|
\code{'candidate'}, or \code{'final'}. The \code{version_info} value
|
||||||
corresponding to the Python version 1.6 is
|
corresponding to the Python version 2.0 is
|
||||||
\code{(1, 6, 0, 'final', 0)}.
|
\code{(2, 0, 0, 'final', 0)}.
|
||||||
\versionadded{1.6}
|
\versionadded{2.0}
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
|
|
||||||
\begin{datadesc}{winver}
|
\begin{datadesc}{winver}
|
||||||
|
|
|
@ -63,7 +63,7 @@ over using the \code{template} variable directly.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{datadesc}{template}
|
\begin{datadesc}{template}
|
||||||
\deprecated{1.6}{Use \function{gettempprefix()} instead.}
|
\deprecated{2.0}{Use \function{gettempprefix()} instead.}
|
||||||
When set to a value other than \code{None}, this variable defines the
|
When set to a value other than \code{None}, this variable defines the
|
||||||
prefix of the final component of the filenames returned by
|
prefix of the final component of the filenames returned by
|
||||||
\function{mktemp()}. A string of decimal digits is added to generate
|
\function{mktemp()}. A string of decimal digits is added to generate
|
||||||
|
|
|
@ -40,7 +40,7 @@ Some of these are very old and/or not very robust; marked with ``hmm.''
|
||||||
\begin{description}
|
\begin{description}
|
||||||
\item[\module{dircmp}]
|
\item[\module{dircmp}]
|
||||||
--- Class to build directory diff tools on (may become a demo or tool).
|
--- Class to build directory diff tools on (may become a demo or tool).
|
||||||
\deprecated{1.6}{The \refmodule{filecmp} module will replace
|
\deprecated{2.0}{The \refmodule{filecmp} module will replace
|
||||||
\module{dircmp}.}
|
\module{dircmp}.}
|
||||||
|
|
||||||
\item[\module{bdb}]
|
\item[\module{bdb}]
|
||||||
|
|
|
@ -737,7 +737,7 @@ The built-in function \function{len()} returns the length of a string:
|
||||||
\subsection{Unicode Strings \label{unicodeStrings}}
|
\subsection{Unicode Strings \label{unicodeStrings}}
|
||||||
\sectionauthor{Marc-Andre Lemburg}{mal@lemburg.com}
|
\sectionauthor{Marc-Andre Lemburg}{mal@lemburg.com}
|
||||||
|
|
||||||
Starting with Python 1.6 a new data type for storing text data is
|
Starting with Python 2.0 a new data type for storing text data is
|
||||||
available to the programmer: the Unicode object. It can be used to
|
available to the programmer: the Unicode object. It can be used to
|
||||||
store and manipulate Unicode data (see \url{http://www.unicode.org})
|
store and manipulate Unicode data (see \url{http://www.unicode.org})
|
||||||
and intergrates well with the existing string objects providing
|
and intergrates well with the existing string objects providing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue