Lines Matching defs:sys
8 import sys
58 decide whether to use sys.ps1 or sys.ps2 to prompt the next
108 type, value, tb = sys.exc_info()
109 sys.last_type = type
110 sys.last_value = value
111 sys.last_traceback = tb
122 sys.last_value = value
123 if sys.excepthook is sys.__excepthook__:
127 # If someone has set sys.excepthook, we let that take precedence
129 sys.excepthook(type, value, tb)
139 sys.last_type, sys.last_value, last_tb = ei = sys.exc_info()
140 sys.last_traceback = last_tb
143 if sys.excepthook is sys.__excepthook__:
146 # If someone has set sys.excepthook, we let that take precedence
148 sys.excepthook(ei[0], ei[1], last_tb)
155 The base implementation writes to sys.stderr; a subclass may
159 sys.stderr.write(data)
166 using the familiar sys.ps1 and sys.ps2, and input buffering.
205 sys.ps1
207 sys.ps1 = ">>> "
209 sys.ps2
211 sys.ps2 = "... "
215 (sys.version, sys.platform, cprt,
223 prompt = sys.ps2
225 prompt = sys.ps1
311 if args.q or sys.flags.quiet: