[Python-checkins] CVS: python/dist/src/Doc/tut tut.tex,1.127,1.128

Fred L. Drake fdrake@users.sourceforge.net
Tue, 13 Feb 2001 19:20:20 -0800


Update of /cvsroot/python/python/dist/src/Doc/tut
In directory usw-pr-cvs1:/tmp/cvs-serv26537/tut

Modified Files:
	tut.tex 
Log Message:

Reflect change in traceback format:
"innermost last" --> "most recent call last"


Index: tut.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.127
retrieving revision 1.128
diff -C2 -r1.127 -r1.128
*** tut.tex	2001/02/13 22:20:22	1.127
--- tut.tex	2001/02/14 03:20:18	1.128
***************
*** 471,475 ****
  >>> a=1.5+0.5j
  >>> float(a)
! Traceback (innermost last):
    File "<stdin>", line 1, in ?
  TypeError: can't convert complex to float; use e.g. abs(z)
--- 471,475 ----
  >>> a=1.5+0.5j
  >>> float(a)
! Traceback (most recent call last):
    File "<stdin>", line 1, in ?
  TypeError: can't convert complex to float; use e.g. abs(z)
***************
*** 618,626 ****
  \begin{verbatim}
  >>> word[0] = 'x'
! Traceback (innermost last):
    File "<stdin>", line 1, in ?
  TypeError: object doesn't support item assignment
  >>> word[:-1] = 'Splat'
! Traceback (innermost last):
    File "<stdin>", line 1, in ?
  TypeError: object doesn't support slice assignment
--- 618,626 ----
  \begin{verbatim}
  >>> word[0] = 'x'
! Traceback (most recent call last):
    File "<stdin>", line 1, in ?
  TypeError: object doesn't support item assignment
  >>> word[:-1] = 'Splat'
! Traceback (most recent call last):
    File "<stdin>", line 1, in ?
  TypeError: object doesn't support slice assignment
***************
*** 700,704 ****
  'HelpA'
  >>> word[-10]    # error
! Traceback (innermost last):
    File "<stdin>", line 1
  IndexError: string index out of range
--- 700,704 ----
  'HelpA'
  >>> word[-10]    # error
! Traceback (most recent call last):
    File "<stdin>", line 1
  IndexError: string index out of range
***************
*** 1433,1437 ****
  ... 
  >>> function(0, a=0)
! Traceback (innermost last):
    File "<stdin>", line 1, in ?
  TypeError: keyword parameter redefined
--- 1433,1437 ----
  ... 
  >>> function(0, a=0)
! Traceback (most recent call last):
    File "<stdin>", line 1, in ?
  TypeError: keyword parameter redefined
***************
*** 2853,2857 ****
  >>> f.close()
  >>> f.read()
! Traceback (innermost last):
    File "<stdin>", line 1, in ?
  ValueError: I/O operation on closed file
--- 2853,2857 ----
  >>> f.close()
  >>> f.read()
! Traceback (most recent call last):
    File "<stdin>", line 1, in ?
  ValueError: I/O operation on closed file
***************
*** 2951,2963 ****
  \begin{verbatim}
  >>> 10 * (1/0)
! Traceback (innermost last):
    File "<stdin>", line 1
  ZeroDivisionError: integer division or modulo
  >>> 4 + spam*3
! Traceback (innermost last):
    File "<stdin>", line 1
  NameError: spam
  >>> '2' + 2
! Traceback (innermost last):
    File "<stdin>", line 1
  TypeError: illegal argument type for built-in operation
--- 2951,2963 ----
  \begin{verbatim}
  >>> 10 * (1/0)
! Traceback (most recent call last):
    File "<stdin>", line 1
  ZeroDivisionError: integer division or modulo
  >>> 4 + spam*3
! Traceback (most recent call last):
    File "<stdin>", line 1
  NameError: spam
  >>> '2' + 2
! Traceback (most recent call last):
    File "<stdin>", line 1
  TypeError: illegal argument type for built-in operation
***************
*** 3134,3138 ****
  \begin{verbatim}
  >>> raise NameError, 'HiThere'
! Traceback (innermost last):
    File "<stdin>", line 1
  NameError: HiThere
--- 3134,3138 ----
  \begin{verbatim}
  >>> raise NameError, 'HiThere'
! Traceback (most recent call last):
    File "<stdin>", line 1
  NameError: HiThere
***************
*** 3163,3167 ****
  My exception occurred, value: 4
  >>> raise MyError, 1
! Traceback (innermost last):
    File "<stdin>", line 1
  __main__.MyError: 1
--- 3163,3167 ----
  My exception occurred, value: 4
  >>> raise MyError, 1
! Traceback (most recent call last):
    File "<stdin>", line 1
  __main__.MyError: 1
***************
*** 3188,3192 ****
  ... 
  Goodbye, world!
! Traceback (innermost last):
    File "<stdin>", line 2
  KeyboardInterrupt
--- 3188,3192 ----
  ... 
  Goodbye, world!
! Traceback (most recent call last):
    File "<stdin>", line 2
  KeyboardInterrupt