parameters: (type)
return_statement: return result
docstring: Returns type and all of its bases, in the order of their distance from type.
docstring_summary: Returns type and all of its bases, in the order of their distance from type.
docstring_tokens: Returns type and all of its bases in the order of their distance from type .
function: def all_bases (type):
      """ Returns type and all of its bases, in the order of their distance from type.
      """
      result = []
      while type:
          result.append (type)
          type = __types [type]['base']
  
      return result
function_tokens: def all_bases ( type ) : result = [ ] while type : result . append ( type ) type = __types [ type ] [ 'base' ] return result