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

Skip to content

Commit 67fa160

Browse files
committed
Minor improvements. Removed footnote about CWI pathnames.
1 parent a9d5c22 commit 67fa160

2 files changed

Lines changed: 8 additions & 30 deletions

File tree

Doc/tut.tex

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
For a description of standard objects and modules, see the Library
4848
Reference document.
4949
The Language Reference document (XXX not yet existing)
50-
gives a more formal reference to the language.
50+
gives a more formal definition of the language.
5151

5252
\end{abstract}
5353

@@ -152,18 +152,7 @@ \section{Using the Python Interpreter}
152152
installation option, other places instead of
153153
{\tt /usr/local}
154154
are possible; check with your local \Python\ guru or system
155-
administrator.%
156-
\footnote{
157-
At CWI, at the time of writing, the interpreter can be found in
158-
the following places:
159-
On the Amoeba Ultrix machines, use the standard path,
160-
{\tt /usr/local/python}.
161-
On the Sun file servers, use
162-
{\tt /ufs/guido/bin/}{\em arch}{\tt /python},
163-
where {\em arch} can be {\tt sgi} or {\tt sun4}.
164-
On piring, use {\tt /userfs3/amoeba/bin/python}.
165-
(If you can't find a binary advertised here, get in touch with me.)
166-
}
155+
administrator.
167156

168157
The interpreter operates somewhat like the \UNIX\ shell: when called with
169158
standard input connected to a tty device, it reads and executes commands
@@ -1351,7 +1340,7 @@ \subsubsection{Handling Exceptions}
13511340
... except RuntimeError, detail:
13521341
... print 'Handling run-time error:', detail
13531342
...
1354-
Handling run-time error: domain error or zero division
1343+
Handling run-time error: integer division by zero
13551344
>>>
13561345
\end{verbatim}\ecode
13571346

@@ -1380,7 +1369,7 @@ \subsubsection{User-defined Exceptions}
13801369
>>> try:
13811370
... raise my_exc, 2*2
13821371
... except my_exc, val:
1383-
... print 'My exception occured, value:', val
1372+
... print 'My exception occurred, value:', val
13841373
...
13851374
My exception occured, value: 4
13861375
>>> raise my_exc, 1

Doc/tut/tut.tex

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
For a description of standard objects and modules, see the Library
4848
Reference document.
4949
The Language Reference document (XXX not yet existing)
50-
gives a more formal reference to the language.
50+
gives a more formal definition of the language.
5151

5252
\end{abstract}
5353

@@ -152,18 +152,7 @@ \section{Using the Python Interpreter}
152152
installation option, other places instead of
153153
{\tt /usr/local}
154154
are possible; check with your local \Python\ guru or system
155-
administrator.%
156-
\footnote{
157-
At CWI, at the time of writing, the interpreter can be found in
158-
the following places:
159-
On the Amoeba Ultrix machines, use the standard path,
160-
{\tt /usr/local/python}.
161-
On the Sun file servers, use
162-
{\tt /ufs/guido/bin/}{\em arch}{\tt /python},
163-
where {\em arch} can be {\tt sgi} or {\tt sun4}.
164-
On piring, use {\tt /userfs3/amoeba/bin/python}.
165-
(If you can't find a binary advertised here, get in touch with me.)
166-
}
155+
administrator.
167156

168157
The interpreter operates somewhat like the \UNIX\ shell: when called with
169158
standard input connected to a tty device, it reads and executes commands
@@ -1351,7 +1340,7 @@ \subsubsection{Handling Exceptions}
13511340
... except RuntimeError, detail:
13521341
... print 'Handling run-time error:', detail
13531342
...
1354-
Handling run-time error: domain error or zero division
1343+
Handling run-time error: integer division by zero
13551344
>>>
13561345
\end{verbatim}\ecode
13571346

@@ -1380,7 +1369,7 @@ \subsubsection{User-defined Exceptions}
13801369
>>> try:
13811370
... raise my_exc, 2*2
13821371
... except my_exc, val:
1383-
... print 'My exception occured, value:', val
1372+
... print 'My exception occurred, value:', val
13841373
...
13851374
My exception occured, value: 4
13861375
>>> raise my_exc, 1

0 commit comments

Comments
 (0)