Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97662c8

Browse files
committed
Version number; started chapter on what's new in 1.4
1 parent f8daa4f commit 97662c8

2 files changed

Lines changed: 100 additions & 4 deletions

File tree

Doc/tut.tex

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ \subsection{Interactive Mode}
215215

216216
\bcode\begin{verbatim}
217217
python
218-
Python 1.3 (Oct 13 1995)
219-
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
218+
Python 1.4b3 (Aug 25 1996) [GCC 2.7.0]
219+
Copyright 1991-1996 Stichting Mathematisch Centrum, Amsterdam
220220
>>>
221221
\end{verbatim}\ecode
222222

@@ -3863,4 +3863,52 @@ \section{Other Changes}
38633863

38643864
\end{itemize}
38653865

3866+
3867+
\chapter{New in Release 1.4}
3868+
3869+
3870+
This chapter describes additions to the Python language and library in
3871+
version 1.4.
3872+
3873+
\begin{itemize}
3874+
3875+
\item
3876+
Power operator. \code{x**y} is equivalent to \code{pow(x, y)}.
3877+
3878+
\item
3879+
Complex numbers. Imaginary literals are writen with a \code{'j'}
3880+
suffix (\code{'J'} is allowed for consistency.) Complex numbers with
3881+
a nonzero real component are written as
3882+
\code{(\var{real}+\var{imag}j)}. The usual arithmetic operators on
3883+
complex numbers are supported, so that e.g. \code{1j**2} equals
3884+
\code{-1.0}. Module \code{cmath} provides versions of all math
3885+
functions that take complex arguments and return complex results.
3886+
(Module \code{math} only supports real numbers, so that
3887+
\code{math.sqrt(-1)} still raises a \code{ValueError} exception.)
3888+
3889+
\item
3890+
New indexing syntax. It is now possible to use a tuple as an indexing
3891+
expression for a mapping object without parenthesizing it,
3892+
e.g. \code{x[1, 2, 3]}.
3893+
3894+
\item
3895+
New slicing syntax. In support of the Numerical Python extension
3896+
(distributed separately), slice indices of the form
3897+
\code{x[lo:hi:stride]} are possible, multiple slice indices separated by
3898+
commas are allowed, and an index position may be replaced by ellipses,
3899+
as follows: \code{x[a, ..., z]}. There's also a new built-in function
3900+
\code{slice(lo, hi, stride)} and a new built-in object
3901+
\code{Ellipses}, which yield the same effect without using special
3902+
syntax. None of the standard sequence types support indexing with
3903+
slice objects or ellipses yet. Note that when any of these extensions
3904+
are used, the mapping interface for indexing will be used.
3905+
3906+
\item
3907+
XXX More!!!
3908+
3909+
\end{itemize}
3910+
3911+
3912+
3913+
38663914
\end{document}

Doc/tut/tut.tex

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ \subsection{Interactive Mode}
215215

216216
\bcode\begin{verbatim}
217217
python
218-
Python 1.3 (Oct 13 1995)
219-
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
218+
Python 1.4b3 (Aug 25 1996) [GCC 2.7.0]
219+
Copyright 1991-1996 Stichting Mathematisch Centrum, Amsterdam
220220
>>>
221221
\end{verbatim}\ecode
222222

@@ -3863,4 +3863,52 @@ \section{Other Changes}
38633863

38643864
\end{itemize}
38653865

3866+
3867+
\chapter{New in Release 1.4}
3868+
3869+
3870+
This chapter describes additions to the Python language and library in
3871+
version 1.4.
3872+
3873+
\begin{itemize}
3874+
3875+
\item
3876+
Power operator. \code{x**y} is equivalent to \code{pow(x, y)}.
3877+
3878+
\item
3879+
Complex numbers. Imaginary literals are writen with a \code{'j'}
3880+
suffix (\code{'J'} is allowed for consistency.) Complex numbers with
3881+
a nonzero real component are written as
3882+
\code{(\var{real}+\var{imag}j)}. The usual arithmetic operators on
3883+
complex numbers are supported, so that e.g. \code{1j**2} equals
3884+
\code{-1.0}. Module \code{cmath} provides versions of all math
3885+
functions that take complex arguments and return complex results.
3886+
(Module \code{math} only supports real numbers, so that
3887+
\code{math.sqrt(-1)} still raises a \code{ValueError} exception.)
3888+
3889+
\item
3890+
New indexing syntax. It is now possible to use a tuple as an indexing
3891+
expression for a mapping object without parenthesizing it,
3892+
e.g. \code{x[1, 2, 3]}.
3893+
3894+
\item
3895+
New slicing syntax. In support of the Numerical Python extension
3896+
(distributed separately), slice indices of the form
3897+
\code{x[lo:hi:stride]} are possible, multiple slice indices separated by
3898+
commas are allowed, and an index position may be replaced by ellipses,
3899+
as follows: \code{x[a, ..., z]}. There's also a new built-in function
3900+
\code{slice(lo, hi, stride)} and a new built-in object
3901+
\code{Ellipses}, which yield the same effect without using special
3902+
syntax. None of the standard sequence types support indexing with
3903+
slice objects or ellipses yet. Note that when any of these extensions
3904+
are used, the mapping interface for indexing will be used.
3905+
3906+
\item
3907+
XXX More!!!
3908+
3909+
\end{itemize}
3910+
3911+
3912+
3913+
38663914
\end{document}

0 commit comments

Comments
 (0)