Did I find the right examples for you? yes no

All Samples(867)  |  Call(836)  |  Derive(0)  |  Import(31)
Returns the Python version as string 'major.minor.patchlevel'

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

        def python_version():

    """ Returns the Python version as string 'major.minor.patchlevel'

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

    """
    return _sys_version()[1]
        


src/b/e/BeginningPythonExercises-HEAD/other/system_admin/PULSA/pythonForSystemAdmin/src/example_8_1.py   BeginningPythonExercises(Download)
platform.python_build(),
platform.python_compiler(),
platform.python_version(),
platform.system(),
platform.uname(),

src/t/k/tkRAD-1.5-Sugar-Extra/example/SOS_tkRAD/core/checkups.py   tkRAD(Download)
    _req_version = str(version)
 
    _cur_version = str(platform.python_version())
 
    # compare strict version

src/q/t/Qt-Python-Binding-Examples-HEAD/scripts/detect_env_for_report_bug.py   Qt-Python-Binding-Examples(Download)
 
    print 'Platform: %s' % sys.platform
    print "Python version: %s" % platform.python_version()
    print "Qt version: %s" % QtCore.__version__
    print "PySide version: %s" % PySide.__version__

src/q/s/QSTK-0.2.7/Examples/Validation.py   QSTK(Download)
print "Python Details : "
print sys.version
print "Your Python Version is : ", platform.python_version()
print "QSTK uses Python 2.7.X (2.7.3 recommended and supported)"
print "Please make sure you're using the correct python version."

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Spawning-0.9.6/src/spawning/util/system.py   hortonworks-sandbox(Download)
            'path_seperator': os.path.sep,
            'processor': platform.processor(),
            'python_version': platform.python_version(),
            'python_branch': platform.python_branch(),
            'python_build': platform.python_build(),

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

src/f/l/flyscript-portal-HEAD/rvbd-portal/rvbd_portal/apps/report/utils.py   flyscript-portal(Download)
    output.append("")
    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()))

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())

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/f/i/FileRock-Client-HEAD/filerockclient/bugreporter/Collector.py   FileRock-Client(Download)
            "implementation": platform.python_implementation(),
            "revision": platform.python_revision(),
            "version": platform.python_version()
        }
 

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