Changeset 391 for python/trunk/Doc/library/traceback.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/traceback.rst
r2 r391 176 176 try: 177 177 lumberjack() 178 except :179 exc eptionType, exceptionValue, exceptionTraceback = sys.exc_info()178 except IndexError: 179 exc_type, exc_value, exc_traceback = sys.exc_info() 180 180 print "*** print_tb:" 181 traceback.print_tb(exc eptionTraceback, limit=1, file=sys.stdout)181 traceback.print_tb(exc_traceback, limit=1, file=sys.stdout) 182 182 print "*** print_exception:" 183 traceback.print_exception(exc eptionType, exceptionValue, exceptionTraceback,183 traceback.print_exception(exc_type, exc_value, exc_traceback, 184 184 limit=2, file=sys.stdout) 185 185 print "*** print_exc:" … … 190 190 print formatted_lines[-1] 191 191 print "*** format_exception:" 192 print repr(traceback.format_exception(exc eptionType, exceptionValue,193 exc eptionTraceback))192 print repr(traceback.format_exception(exc_type, exc_value, 193 exc_traceback)) 194 194 print "*** extract_tb:" 195 print repr(traceback.extract_tb(exc eptionTraceback))195 print repr(traceback.extract_tb(exc_traceback)) 196 196 print "*** format_tb:" 197 print repr(traceback.format_tb(exc eptionTraceback))198 print "*** tb_lineno:", traceback.tb_lineno(exceptionTraceback)197 print repr(traceback.format_tb(exc_traceback)) 198 print "*** tb_lineno:", exc_traceback.tb_lineno 199 199 200 200
Note:
See TracChangeset
for help on using the changeset viewer.