diff options
author | Georg Brandl <georg@python.org> | 2009-04-27 16:22:44 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-27 16:22:44 (GMT) |
commit | 0142d4a3df3f4c7f9bec7aa72f4b92cee7716f57 (patch) | |
tree | 1223b640fae3453d61bd53e628f7c670b759651e /Doc | |
parent | e720c0aa74ca8e6cf350b808c6ca795e587ebf88 (diff) | |
download | cpython-0142d4a3df3f4c7f9bec7aa72f4b92cee7716f57.zip cpython-0142d4a3df3f4c7f9bec7aa72f4b92cee7716f57.tar.gz cpython-0142d4a3df3f4c7f9bec7aa72f4b92cee7716f57.tar.bz2 |
Merged revisions 72007 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72007 | georg.brandl | 2009-04-27 17:09:25 +0200 (Mo, 27 Apr 2009) | 1 line
#5856: fix typo s in traceback example.
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/traceback.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst index 1129745..ce5fe45 100644 --- a/Doc/library/traceback.rst +++ b/Doc/library/traceback.rst @@ -269,10 +269,10 @@ The following example shows the different ways to print and format the stack:: This last example demonstrates the final few formatting functions:: >>> import traceback - >>> format_list([('spam.py', 3, '<module>', 'spam.eggs()'), - ... ('eggs.py', 42, 'eggs', 'return "bacon"')]) + >>> traceback.format_list([('spam.py', 3, '<module>', 'spam.eggs()'), + ... ('eggs.py', 42, 'eggs', 'return "bacon"')]) [' File "spam.py", line 3, in <module>\n spam.eggs()\n', ' File "eggs.py", line 42, in eggs\n return "bacon"\n'] - >>> theError = IndexError('tuple indx out of range') - >>> traceback.format_exception_only(type(theError), theError) + >>> an_error = IndexError('tuple index out of range') + >>> traceback.format_exception_only(type(an_error), an_error) ['IndexError: tuple index out of range\n'] |