Did I find the right examples for you? yes no

All Samples(178)  |  Call(158)  |  Derive(0)  |  Import(20)
Returns the Python version as tuple (major, minor, patchlevel)
of strings.

Note that unlike the Python sys.version, the returned value
will always include the patchlevel (it defaults to 0).

        def python_version_tuple():

    """ Returns the Python version as tuple (major, minor, patchlevel)
        of strings.

        Note that unlike the Python sys.version, the returned value
        will always include the patchlevel (it defaults to 0).

    """
    return tuple(string.split(_sys_version()[1], '.'))
        


src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Spawning-0.9.6/src/spawning/util/system.py   hortonworks-sandbox(Download)
            'python_implementation': platform.python_implementation(),
            'python_revision': platform.python_revision(),
            'python_version_tuple': platform.python_version_tuple(),
            'python_path': sys.path,
            'login': os.getlogin(),

src/f/l/flyscript-portal-HEAD/rvbd-portal/rvbd_portal/apps/console/scripts/about.py   flyscript-portal(Download)
print "Python information:"
print 'Version      :', platform.python_version()
print 'Version tuple:', platform.python_version_tuple()
print 'Compiler     :', platform.python_compiler()
print 'Build        :', platform.python_build()

src/f/o/foobnix-HEAD/foobnix/util/LOG.py   foobnix(Download)
    logging.debug('==Interpreter==')
    logging.debug('Version      :' + platform.python_version())
    logging.debug('Version tuple:' + str(platform.python_version_tuple()))
    logging.debug('Compiler     :' + platform.python_compiler())
    logging.debug('Build        :' + str(platform.python_build()))

src/f/l/flyscript-portal-HEAD/rvbd-portal/rvbd_portal/apps/report/utils.py   flyscript-portal(Download)
    output.append("Python information:")
    output.append('Version      : %s' % str(platform.python_version()))
    output.append('Version tuple: %s' % str(platform.python_version_tuple()))
    output.append('Compiler     : %s' % str(platform.python_compiler()))
    output.append('Build        : %s' % str(platform.python_build()))

src/p/y/pyradar-0.2/pyradar/utils/system_info.py   pyradar(Download)
def get_system_info():
    """ Function to collect and display system information. """
    python_info = {
        'version': platform.python_version(),
        'version_tuple:': platform.python_version_tuple(),

src/p/a/pave-0.69/pave/inspector.py   pave(Download)
def query():
    details = dict(encoding=gdl()[1],
        arch=p.architecture(),machine=p.machine(),node=p.node(),
        proc=p.processor(),py_vers=p.python_version(),
        py_vert=p.python_version_tuple(),os_release=p.release(),

src/s/p/Spawning-0.9.7/spawning/util/system.py   Spawning(Download)
            'python_implementation': platform.python_implementation(),
            'python_revision': platform.python_revision(),
            'python_version_tuple': platform.python_version_tuple(),
            'python_path': sys.path,
            'login': os.getlogin(),

src/s/p/Spawning-HEAD/spawning/util/system.py   Spawning(Download)
            'python_implementation': platform.python_implementation(),
            'python_revision': platform.python_revision(),
            'python_version_tuple': platform.python_version_tuple(),
            'python_path': sys.path,
            'login': os.getlogin(),

src/f/l/flyscript-0.6.0/utilities/flyscript_about.py   flyscript(Download)
print "Python information:"
print 'Version      :', platform.python_version()
print 'Version tuple:', platform.python_version_tuple()
print 'Compiler     :', platform.python_compiler()
print 'Build        :', platform.python_build()

src/p/y/pyhai-0.1.3/pyhai/plugins/python.py   pyhai(Download)
            'python_revision': platform.python_revision(),
            'python_version': platform.python_version(),
            'python_version_tuple': platform.python_version_tuple(),
            }
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next