def get_default(versions):
 for version in versions:
  if (not version.rc):
   return version

def get_default ( versions ) : for version in versions : if ( not version . rc ) : return version
return a :class:version for the latest non-rc version .