parameters: ()
return_statement: return None
docstring: Return the version of MSVC that was used to build Python.
  
      For Python 2.3 and up, the version number is included in
      sys.version.  For earlier versions, assume the compiler is MSVC 6.
docstring_summary: Return the version of MSVC that was used to build Python.
docstring_tokens: Return the version of MSVC that was used to build Python .
function: def get_build_version():
      """Return the version of MSVC that was used to build Python.
  
      For Python 2.3 and up, the version number is included in
      sys.version.  For earlier versions, assume the compiler is MSVC 6.
      """
      prefix = "MSC v."
      i = sys.version.find(prefix)
      if i == -1:
          return 6
      i = i + len(prefix)
      s, rest = sys.version[i:].split(" ", 1)
      majorVersion = int(s[:-2]) - 6
      minorVersion = int(s[2:3]) / 10.0
      # I don't think paths are affected by minor version in version 6
      if majorVersion == 6:
          minorVersion = 0
      if majorVersion >= 6:
          return majorVersion + minorVersion
      # else we don't know what version of the compiler this is
      return None
function_tokens: def get_build_version ( ) : prefix = "MSC v." i = sys . version . find ( prefix ) if i == - 1 : return 6 i = i + len ( prefix ) s , rest = sys . version [ i : ] . split ( " " , 1 ) majorVersion = int ( s [ : - 2 ] ) - 6 minorVersion = int ( s [ 2 : 3 ] ) / 10.0 # I don't think paths are affected by minor version in version 6 if majorVersion == 6 : minorVersion = 0 if majorVersion >= 6 : return majorVersion + minorVersion # else we don't know what version of the compiler this is return None