Lines Matching defs:sys

4 f'''{sys.executable} -c "__import__('idlelib.run').run.main()"'''
12 import sys
31 if not hasattr(sys.modules['idlelib.run'], 'firstrun'):
37 del sys.modules['tkinter.' + mod]
39 sys.modules['idlelib.run'].firstrun = False
71 file = sys.stderr
134 assert(len(sys.argv) > 1)
135 port = int(sys.argv[-1])
137 print("IDLE Subprocess: no IP port passed in sys.argv.",
138 file=sys.__stderr__)
142 sys.argv[:] = [""]
176 type, value, tb = sys.exc_info()
182 traceback.print_exception(type, value, tb, file=sys.__stderr__)
195 ", retrying....", file=sys.__stderr__)
199 "IDLE GUI failed, exiting.", file=sys.__stderr__)
229 sys.__excepthook__(typ, exc, tb)
239 efile = sys.stderr
240 typ, val, tb = excinfo = sys.exc_info()
241 sys.last_type, sys.last_value, sys.last_traceback = excinfo
291 print("** IDLE Internal Exception: ", file=sys.stderr)
317 sys.exit(0)
342 @functools.wraps(sys.setrecursionlimit)
344 # mimic the original sys.setrecursionlimit()'s input handling
363 @functools.wraps(sys.getrecursionlimit)
372 sys.setrecursionlimit(sys.getrecursionlimit() + RECURSIONLIMIT_DELTA)
374 sys.setrecursionlimit = setrecursionlimit
375 sys.getrecursionlimit = getrecursionlimit
379 """Uninstall the recursion limit wrappers from the sys module.
385 getattr(sys.setrecursionlimit, '__wrapped__', None) and
386 getattr(sys.getrecursionlimit, '__wrapped__', None)
388 sys.setrecursionlimit = sys.setrecursionlimit.__wrapped__
389 sys.getrecursionlimit = sys.getrecursionlimit.__wrapped__
390 sys.setrecursionlimit(sys.getrecursionlimit() - RECURSIONLIMIT_DELTA)
411 erf = sys.__stderr__
523 sys.stdin = StdInputFile(self.console, "stdin",
525 sys.stdout = StdOutputFile(self.console, "stdout",
527 sys.stderr = StdOutputFile(self.console, "stderr",
530 sys.displayhook = rpc.displayhook
536 # sys.stdin gets changed from within IDLE's shell. See issue17838.
537 self._keep_stdin = sys.stdin
585 print('SystemExit: ' + str(ob), file=sys.stderr)
588 self.user_exc_info = sys.exc_info() # For testing, hook, viewer.
591 if sys.excepthook is sys.__excepthook__:
595 sys.excepthook(*self.user_exc_info)
597 self.user_exc_info = sys.exc_info() # For testing.
632 sys.last_type = typ
633 sys.last_value = val