Lines Matching defs:sys
6 import sys
25 file = sys.stderr
51 is omitted or None, the output goes to sys.stderr; otherwise
182 """Shorthand for 'print_exception(*sys.exc_info(), limit, file)'."""
183 print_exception(*sys.exc_info(), limit=limit, file=file, chain=chain)
187 return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
190 """This is a shorthand for 'print_exception(sys.last_type,
191 sys.last_value, sys.last_traceback, limit, file)'."""
192 if not hasattr(sys, "last_type"):
194 print_exception(sys.last_type, sys.last_value, sys.last_traceback,
209 f = sys._getframe().f_back
216 f = sys._getframe().f_back
230 f = sys._getframe().f_back
332 f = sys._getframe().f_back.f_back.f_back.f_back
405 limit = getattr(sys, 'tracebacklimit', None)
980 file = sys.stderr