def split_python_version(version=None):
 major = ((version >> 24) & 255)
 minor = ((version >> 16) & 255)
 micro = ((version >> 8) & 255)
 release_level = ((version >> 4) & 15)
 serial = (version & 15)
 release_level_string = RELEASE_LEVEL_NAMES.get(release_level, None)
 if (not release_level_string):
  raise ValueError, ('Bad release level 0x%x in version 0x%08x' % (release_level, version))
 return (major, minor, micro, release_level_string, serial)

def split_python_version ( version = None ) : major = ( ( version >> 24 ) & 255 ) minor = ( ( version >> 16 ) & 255 ) micro = ( ( version >> 8 ) & 255 ) release_level = ( ( version >> 4 ) & 15 ) serial = ( version & 15 ) release_level_string = RELEASE_LEVEL_NAMES . get ( release_level , None ) if ( not release_level_string ) : raise ValueError , ( 'Bad release level 0x%x in version 0x%08x' % ( release_level , version ) ) return ( major , minor , micro , release_level_string , serial )
convert a binary python version string into the same tuple that is found in sys .