parameters: (self)
docstring: Provides an iterator that looks for distributions and returns
          :class:`InstalledDistribution` or
          :class:`EggInfoDistribution` instances for each one of them.
  
          :rtype: iterator of :class:`InstalledDistribution` and
                  :class:`EggInfoDistribution` instances
docstring_summary: Provides an iterator that looks for distributions and returns
          :class:`InstalledDistribution` or
          :class:`EggInfoDistribution` instances for each one of them.
docstring_tokens: Provides an iterator that looks for distributions and returns : class : InstalledDistribution or : class : EggInfoDistribution instances for each one of them .
function: def get_distributions(self):
          """
          Provides an iterator that looks for distributions and returns
          :class:`InstalledDistribution` or
          :class:`EggInfoDistribution` instances for each one of them.
  
          :rtype: iterator of :class:`InstalledDistribution` and
                  :class:`EggInfoDistribution` instances
          """
          if not self._cache_enabled:
              for dist in self._yield_distributions():
                  yield dist
          else:
              self._generate_cache()
  
              for dist in self._cache.path.values():
                  yield dist
  
              if self._include_egg:
                  for dist in self._cache_egg.path.values():
                      yield dist
function_tokens: def get_distributions ( self ) : if not self . _cache_enabled : for dist in self . _yield_distributions ( ) : yield dist else : self . _generate_cache ( ) for dist in self . _cache . path . values ( ) : yield dist if self . _include_egg : for dist in self . _cache_egg . path . values ( ) : yield dist