parameters: (self, best=False)
return_statement: return '', '', ''
docstring: Return the version of the OS distribution, as a tuple of version
          numbers.
  
          For details, see :func:`distro.version_parts`.
docstring_summary: Return the version of the OS distribution, as a tuple of version
          numbers.
docstring_tokens: Return the version of the OS distribution as a tuple of version numbers .
function: def version_parts(self, best=False):
          """
          Return the version of the OS distribution, as a tuple of version
          numbers.
  
          For details, see :func:`distro.version_parts`.
          """
          version_str = self.version(best=best)
          if version_str:
              version_regex = re.compile(r'(\d+)\.?(\d+)?\.?(\d+)?')
              matches = version_regex.match(version_str)
              if matches:
                  major, minor, build_number = matches.groups()
                  return major, minor or '', build_number or ''
          return '', '', ''
function_tokens: def version_parts ( self , best = False ) : version_str = self . version ( best = best ) if version_str : version_regex = re . compile ( r'(\d+)\.?(\d+)?\.?(\d+)?' ) matches = version_regex . match ( version_str ) if matches : major , minor , build_number = matches . groups ( ) return major , minor or '' , build_number or '' return '' , '' , ''