[issue5856] Minor typo in traceback example

Niels de Vos report at bugs.python.org
Mon Apr 27 15:10:24 CEST 2009


New submission from Niels de Vos <niels.devos at wincor-nixdorf.com>:

The last example of traceback (found on
<http://docs.python.org/library/traceback.html> release 2.6.2) contains
a typo.

  >>> theError = IndexError('tuple indx out of range')
  >>> traceback.format_exception_only(type(theError), theError)
  ['IndexError: tuple index out of range\n']

IndexError('tuple indx out of range') should be IndexError('tuple index
out of range').

----------
assignee: georg.brandl
components: Documentation
messages: 86662
nosy: georg.brandl, nielsdevos
severity: normal
status: open
title: Minor typo in traceback example
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5856>
_______________________________________


More information about the Python-bugs-list mailing list