summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
Commit message (Collapse)AuthorAgeFilesLines
* Add obvious needed else clause to format_exception().Guido van Rossum1998-03-181-0/+2
|
* New version of tb_lineno(), this time *not* using try-except, to avoidGuido van Rossum1998-02-261-8/+8
| | | | | | disturbing the current exception, and returning tb.tb_lineno, which is the line number of thr traceback, rather than the current line number. By Jim Hugunin.
* Tweak the tb_lineno() function to be compatible with JPython, whichGuido van Rossum1998-02-251-4/+8
| | | | has no line number table etc.
* Use Marc Lemburg's tb_lineno() to calculate the correct line number.Guido van Rossum1997-09-261-3/+21
| | | | | | Apparently the traceback object doesn't contains the right linenumber when -O is used. Rather than guessing whether -O is on or off, use tb_lineno() unconditionally.
* Use sys.exc_info() instead of sys.exc_{type,value,traceback}.Guido van Rossum1997-07-181-9/+9
| | | | Also corrected a typo in format_stack (t should've been f).
* Changes to always call list.append with a single argument.Guido van Rossum1996-10-081-2/+2
|
* Added routines to print, format and extract the current, ``live'' stack.Guido van Rossum1996-08-121-7/+65
| | | | | Also added print_list() and format_list() which format the output from an extract_*() routine.
* removed history commentGuido van Rossum1996-05-281-3/+0
|
* add file parameter to all printing fns, default stderrGuido van Rossum1995-09-201-12/+30
|
* added format_* functions (suggestion by Ken M)Guido van Rossum1995-08-041-7/+31
|
* handle class exceptionsGuido van Rossum1995-02-271-6/+13
|
* * Lib/linecache.py: don't crash on empty filenameGuido van Rossum1994-08-231-5/+27
| | | | | | | | | | | * Lib/macpath.py: don't return trailing colon for dirname() (XXX won't do for volume names -- but otherwise glob(':*:*.py') loops forever) * Lib/traceback.py: print SyntaxError correctly * Lib/stat.py: moved to posixstat.py; added macstat.py which has the constants for the Mac; and created new stat.py which includes the right one * Lib/urllib.py: fix caching bug (by disabling the cache)
* New module, formats traceback just like the C code doesGuido van Rossum1994-07-011-0/+57