summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 80777 via svnmerge fromVictor Stinner2010-05-051-2/+8
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80777 | victor.stinner | 2010-05-05 14:40:49 +0200 (mer., 05 mai 2010) | 3 lines Issue #8313: traceback.format_exception_only() encodes unicode message to ASCII with backslashreplace error handler if str(value) failed ........
* Merged revisions ↵Georg Brandl2009-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 73206,73232,73299,73683,74020,74185,74544,74643,74647,74817,74838-74839,74865,74946,75402,75459,75604,75696 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73206 | georg.brandl | 2009-06-04 11:15:12 +0200 (Do, 04 Jun 2009) | 1 line #3584: ignore trailing newlines when placing the caret for a SyntaxError location. ........ r73232 | georg.brandl | 2009-06-04 20:59:58 +0200 (Do, 04 Jun 2009) | 1 line Add test for #3684. ........ r73299 | georg.brandl | 2009-06-08 20:41:36 +0200 (Mo, 08 Jun 2009) | 1 line Typo fix. ........ r73683 | georg.brandl | 2009-06-29 16:44:49 +0200 (Mo, 29 Jun 2009) | 1 line Fix error handling in PyCode_Optimize, by Alexander Schremmer at EuroPython sprint. ........ r74020 | georg.brandl | 2009-07-16 09:18:07 +0200 (Do, 16 Jul 2009) | 1 line #5910: fix kqueue for calls with more than one event. ........ r74185 | georg.brandl | 2009-07-23 11:17:09 +0200 (Do, 23 Jul 2009) | 1 line Fix the "pylocals" gdb command. ........ r74544 | georg.brandl | 2009-08-24 19:12:30 +0200 (Mo, 24 Aug 2009) | 1 line #6775: fix python.org URLs in README. ........ r74643 | georg.brandl | 2009-09-04 08:59:20 +0200 (Fr, 04 Sep 2009) | 2 lines Issue #2666: Handle BROWSER environment variable properly for unknown browser names in the webbrowser module. ........ r74647 | georg.brandl | 2009-09-04 10:17:04 +0200 (Fr, 04 Sep 2009) | 2 lines Issue #5275: In Cookie's Cookie.load(), properly handle non-string arguments as documented. ........ r74817 | georg.brandl | 2009-09-16 11:05:11 +0200 (Mi, 16 Sep 2009) | 1 line Make deprecation notices as visible as warnings are right now. ........ r74838 | georg.brandl | 2009-09-16 18:22:12 +0200 (Mi, 16 Sep 2009) | 1 line Remove some more boilerplate from the actual tests in test_pdb. ........ r74839 | georg.brandl | 2009-09-16 18:36:39 +0200 (Mi, 16 Sep 2009) | 1 line Make the pdb displayhook compatible with the standard displayhook: do not print Nones. Add a test for that. ........ r74865 | georg.brandl | 2009-09-17 09:49:37 +0200 (Do, 17 Sep 2009) | 1 line #6912: add "with" block support to pindent. ........ r74946 | georg.brandl | 2009-09-19 10:43:16 +0200 (Sa, 19 Sep 2009) | 1 line Update bug tracker reference. ........ r75402 | georg.brandl | 2009-10-14 17:51:48 +0200 (Mi, 14 Okt 2009) | 1 line #7125: fix typo. ........ r75459 | georg.brandl | 2009-10-17 10:57:43 +0200 (Sa, 17 Okt 2009) | 1 line Fix refleaks in _ctypes PyCSimpleType_New, which fixes the refleak seen in test___all__. ........ r75604 | georg.brandl | 2009-10-22 13:36:50 +0200 (Do, 22 Okt 2009) | 1 line Fix stylesheet for multi-paragraph impl-details. ........ r75696 | georg.brandl | 2009-10-25 21:25:43 +0100 (So, 25 Okt 2009) | 1 line Fix a demo. ........
* Rolled back revisions 71237 via svnmerge fromHirokazu Yamamoto2009-04-071-4/+5
| | | | svn+ssh://pythondev@svn.python.org/python/trunk
* Merged revisions ↵Georg Brandl2009-04-051-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 71058,71149-71150,71212,71214-71216,71222,71225,71234,71237-71238,71240-71241,71243,71249,71251 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r71058 | georg.brandl | 2009-04-02 20:09:04 +0200 (Do, 02 Apr 2009) | 3 lines PyErr_NormalizeException may not set an error, so convert the PyErr_SetObject call on hitting the recursion limit into just assigning it to the arguments provided. ........ r71149 | georg.brandl | 2009-04-04 15:42:39 +0200 (Sa, 04 Apr 2009) | 1 line #5642: clarify map() compatibility to the builtin. ........ r71150 | georg.brandl | 2009-04-04 15:45:49 +0200 (Sa, 04 Apr 2009) | 1 line #5601: clarify that webbrowser is not meant for file names. ........ r71212 | georg.brandl | 2009-04-05 12:24:20 +0200 (So, 05 Apr 2009) | 1 line #1742837: expand HTTP server docs, and fix SocketServer ones to document methods as methods, not functions. ........ r71214 | georg.brandl | 2009-04-05 12:29:57 +0200 (So, 05 Apr 2009) | 1 line Normalize spelling of Mac OS X. ........ r71215 | georg.brandl | 2009-04-05 12:32:26 +0200 (So, 05 Apr 2009) | 1 line Avoid sure signs of a diseased mind. ........ r71216 | georg.brandl | 2009-04-05 12:41:02 +0200 (So, 05 Apr 2009) | 1 line #1718017: document the relation of os.path and the posixpath, ntpath etc. modules better. ........ r71222 | georg.brandl | 2009-04-05 13:07:14 +0200 (So, 05 Apr 2009) | 1 line #5615: make it possible to configure --without-threads again. ........ r71225 | georg.brandl | 2009-04-05 13:54:07 +0200 (So, 05 Apr 2009) | 1 line #5580: no need to use parentheses when converterr() argument is actually a type description. ........ r71234 | georg.brandl | 2009-04-05 15:16:35 +0200 (So, 05 Apr 2009) | 1 line Whitespace normalization. ........ r71237 | georg.brandl | 2009-04-05 16:24:52 +0200 (So, 05 Apr 2009) | 1 line #1326077: fix traceback formatting of SyntaxErrors. This fixes two differences with formatting coming from Python: a) the reproduction of location details in the error message if no line text is given, b) the prefixing of the last line by one space. ........ r71238 | georg.brandl | 2009-04-05 16:25:41 +0200 (So, 05 Apr 2009) | 1 line Add NEWS entry for r71237. ........ r71240 | georg.brandl | 2009-04-05 16:40:06 +0200 (So, 05 Apr 2009) | 1 line #5370: doc update about unpickling objects with custom __getattr__ etc. methods. ........ r71241 | georg.brandl | 2009-04-05 16:48:49 +0200 (So, 05 Apr 2009) | 1 line #5471: fix expanduser() for $HOME set to "/". ........ r71243 | georg.brandl | 2009-04-05 17:14:29 +0200 (So, 05 Apr 2009) | 1 line #5432: make plistlib docstring a raw string, since it contains examples with backslash escapes. ........ r71249 | georg.brandl | 2009-04-05 18:30:43 +0200 (So, 05 Apr 2009) | 1 line #5444: adapt make.bat to new htmlhelp output file name. ........ r71251 | georg.brandl | 2009-04-05 19:17:42 +0200 (So, 05 Apr 2009) | 1 line #5298: clarify docs about GIL by using more consistent wording. ........
* Fix a DeprecationWarning about __getitem__() and exceptions in the ↵Brett Cannon2008-08-011-1/+1
| | | | 'traceback' module.
* Fix a bug in traceback.format_exception_only() that led to an errorGeorg Brandl2006-09-241-1/+1
| | | | | being raised when print_exc() was called without an exception set. In version 2.4, this printed "None", restored that behavior.
* Better fix for bug #1531405, not executing str(value) twice.Georg Brandl2006-08-041-7/+3
|
* Bug #1531405, format_exception no longer raises an exception ifNeal Norwitz2006-08-041-1/+6
| | | | str(exception) raised an exception.
* Whitespace normalization.Tim Peters2006-07-241-4/+4
|
* Repair accidental NameError.Georg Brandl2006-07-241-1/+2
|
* Patch #1515343: Fix printing of deprecated string exceptions with aGeorg Brandl2006-07-241-42/+54
| | | | value in the traceback module.
* Fix the formatting of KeyboardInterrupt -- a bad issubclass() call.Guido van Rossum2006-05-021-1/+1
|
* reverting r45321: Patch #860326: traceback.format_exception_only() nowAnthony Baxter2006-04-131-5/+1
| | | | | | | | prepends the exception's module name to non-builtin exceptions, like the interpreter itself does. broke a number of doctests. should be discussed before checking in (see discussion on python-dev).
* Patch #860326: traceback.format_exception_only() now prepends theGeorg Brandl2006-04-121-1/+5
| | | | | exception's module name to non-builtin exceptions, like the interpreter itself does.
* Updated the warnings, linecache, inspect, traceback, site, and doctest modulesPhillip J. Eby2006-04-111-3/+3
| | | | | to work correctly with modules imported from zipfiles or via other PEP 302 __loader__ objects. Tests and doc updates are included.
* traceback now shows error position for all SyntaxError subclasses,Georg Brandl2006-03-311-1/+1
| | | | e.g. IndentationError. (bug #1447885)
* Revert r42719, because the isinstance() check wasn't redundant; formatting aPhillip J. Eby2006-03-241-1/+1
| | | | string exception was causing a TypeError.
* Remove redundant isinstance() check.Thomas Wouters2006-03-011-1/+1
|
* PEP 352 implementation. Creates a new base class, BaseException, which has anBrett Cannon2006-03-011-1/+2
| | | | | | | | | added message attribute compared to the previous version of Exception. It is also a new-style class, making all exceptions now new-style. KeyboardInterrupt and SystemExit inherit from BaseException directly. String exceptions now raise DeprecationWarning. Applies patch 1104669, and closes bugs 1012952 and 518846.
* SF #737473: Show up-to-date source code in tracebacks always.Hye-Shik Chang2004-10-261-0/+3
| | | | | And add an optional argument 'filename' to linecache.checkcache() to enable checking caches per-file.
* Whitespace normalization.Tim Peters2004-01-181-1/+1
|
* Add traceback.format_exc().Neil Schemenauer2003-11-051-2/+12
|
* This is my patchMichael W. Hudson2002-08-151-22/+5
| | | | | | | | [ 587993 ] SET_LINENO killer Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab. Many sundry changes to document and adapt to this change.
* Replaced boolean tests with is None.Raymond Hettinger2002-06-021-5/+5
|
* 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