Lines Matching defs:sys

44 #    0.8.0 - added sys.version parser and various new access
118 import sys
187 executable = sys.executable
190 # sys.executable is not set.
277 if sys.platform not in supported_platforms:
365 from sys import getwindowsversion
611 if sys.platform in ('dos', 'win32', 'win16'):
646 def architecture(executable=sys.executable, bits='', linkage=''):
681 executable == sys.executable:
684 if sys.platform in _default_architecture:
685 b, l = _default_architecture[sys.platform]
738 func = getattr(cls, f'get_{sys.platform}', cls.from_subprocess)
846 system = sys.platform
972 ### Various APIs for extracting information from sys.version
1004 """ Returns a parsed version of Python's sys.version as tuple
1010 Note that unlike the Python sys.version, the returned value
1024 sys_version = sys.version
1042 'failed to parse IronPython sys.version: %s' %
1049 elif sys.platform.startswith('java'):
1055 'failed to parse Jython sys.version: %s' %
1060 compiler = sys.platform
1067 raise ValueError("failed to parse PyPy sys.version: %s" %
1077 'failed to parse CPython sys.version: %s' %
1087 if hasattr(sys, '_git'):
1088 _, branch, revision = sys._git
1089 elif hasattr(sys, '_mercurial'):
1090 _, branch, revision = sys._mercurial
1123 Note that unlike the Python sys.version, the returned value
1134 Note that unlike the Python sys.version, the returned value
1254 bits, linkage = architecture(sys.executable)
1322 terse = ('terse' in sys.argv or '--terse' in sys.argv)
1323 aliased = (not 'nonaliased' in sys.argv and not '--nonaliased' in sys.argv)
1325 sys.exit(0)