[py-svn] r36353 - py/dist/py/code
hpk at codespeak.net
hpk at codespeak.net
Tue Jan 9 14:34:29 CET 2007
Author: hpk
Date: Tue Jan 9 14:34:28 2007
New Revision: 36353
Modified:
py/dist/py/code/traceback2.py
Log:
docstring for Traceback
Modified: py/dist/py/code/traceback2.py
==============================================================================
--- py/dist/py/code/traceback2.py (original)
+++ py/dist/py/code/traceback2.py Tue Jan 9 14:34:28 2007
@@ -79,9 +79,12 @@
return " File %r:%d in %s\n %s\n" %(fn, self.lineno+1, name, line)
class Traceback(list):
+ """ Traceback objects encapsulate and offer higher level
+ access to Traceback entries.
+ """
Entry = TracebackEntry
-
def __init__(self, tb):
+ """ initialize from given python traceback object. """
if hasattr(tb, 'tb_next'):
def f(cur):
while cur is not None:
More information about the py-svn
mailing list