Skip to content

Instantly share code, notes, and snippets.

@glyphx
Created December 24, 2016 12:30
Show Gist options
  • Save glyphx/969a9f54d9ddc51ee718fb8869ba4d1c to your computer and use it in GitHub Desktop.
Save glyphx/969a9f54d9ddc51ee718fb8869ba4d1c to your computer and use it in GitHub Desktop.
python is pretty damn cool
C:\Python27\python.exe "H:\PyCharm 2016.3.1\helpers\pydev\pydevconsole.py" 19146 19147
PyDev console: starting.
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['C:\\Users\\glyph\\PycharmProjects\\hellopythonworld', 'C:/Users/glyph/PycharmProjects/hellopythonworld'])
Python 2.7.8 (default, Jul 2 2014, 19:50:44) [MSC v.1500 32 bit (Intel)] on win32
>>> print('%s %s' % (sys.version_info, sys.hexversion))
sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=0) 34015472
>>> print('%s %s' % (sys.version_info, sys.api_version))
sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=0) 1013
>>> print('%s %s' % (sys.version_info, sys._current_frames()))
sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=0) {9928: <frame object at 0x02C3C610>, 6084: <frame object at 0x02BB6D20>}
>>> print('%s %s' % (sys.version_info, sys._current_frames()))
sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=0) {9928: <frame object at 0x02C3C320>, 6084: <frame object at 0x02BB6D20>}
>>>
>>> print('%s %s' % (sys.version_info, sys.argv))
sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=0) ['H:\\PyCharm 2016.3.1\\helpers\\pydev\\pydevconsole.py', '19146', '19147']
>>> print('%s %s' % (sys.version_info, sys.argv))
sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=0) ['H:\\PyCharm 2016.3.1\\helpers\\pydev\\pydevconsole.py', '19146', '19147']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment