summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
Commit message (Collapse)AuthorAgeFilesLines
* SF bug 431772: traceback.print_exc() causes tracebackTim Peters2001-06-101-13/+14
| | | | | | | Patch from Michael Hundson. format_exception_only() blew up when trying to report a SyntaxError from a string input (line is None in this case, but it assumed a string). Bugfix candidate.
* Whitespace normalization.Tim Peters2001-03-291-1/+1
|
* Do not print caret when offset is None.Jeremy Hylton2001-03-211-7/+8
|
* Reformat and edit docstrings to follow modern conventions. SingleJeremy Hylton2001-03-211-50/+68
| | | | line summary followed by blank line and description.
* final round of __all__ lists (I hope) - skipped urllib2 because Moshe may beSkip Montanaro2001-03-011-0/+5
| | | | giving it a slight facelift
* String method cleanup.Eric S. Raymond2001-02-101-4/+2
|
* String method conversion.Eric S. Raymond2001-02-091-6/+6
|
* Whitespace normalization.Tim Peters2001-01-151-233/+233
|
* mwh: [ Patch #103228 ] traceback.py nit.Guido van Rossum2001-01-131-1/+5
| | | | | When the exception has no message, don't insert a colon after the exception name.
* Patch by Toby Dickenson: don't die when an error occurs during stringGuido van Rossum2000-08-221-1/+7
| | | | | conversion in an exception, but instead display <unprintable %s object> where %s is the type name.
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Match the error messages to say "(most recent call last)" like theGuido van Rossum2000-04-101-5/+5
| | | | built-in messages.
* The third and final doc-string sweep by Ka-Ping Yee.Guido van Rossum2000-02-041-7/+68
| | | | | | | | The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac.
* 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