Lines Matching defs:sys
3 import sys
23 file = sys.stderr
25 # sys.stderr is None when run with pythonw.exe:
204 # Helper to process -W options passed via sys.warnoptions
210 print("Invalid -W option ignored:", msg, file=sys.stderr)
300 if stacklevel <= 1 or _is_internal_frame(sys._getframe(1)):
303 frame = sys._getframe(stacklevel)
305 frame = sys._getframe(1)
312 globals = sys.__dict__
313 filename = "sys"
443 should be used other than sys.modules['warnings'].
450 self._module = sys.modules['warnings'] if module is None else module
461 if self._module is not sys.modules['warnings']:
498 def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
569 _processoptions(sys.warnoptions)
572 if not hasattr(sys, 'gettotalrefcount'):