parameters: (self, func, cachedir, ignore=None, mmap_mode=None,
                   compress=False, verbose=1, timestamp=None)
docstring: Parameters
              ----------
              func: callable
                  The function to decorate
              cachedir: string
                  The path of the base directory to use as a data store
              ignore: list or None
                  List of variable names to ignore.
              mmap_mode: {None, 'r+', 'r', 'w+', 'c'}, optional
                  The memmapping mode used when loading from cache
                  numpy arrays. See numpy.load for the meaning of the
                  arguments.
              verbose: int, optional
                  Verbosity flag, controls the debug messages that are issued
                  as functions are revaluated. The higher, the more verbose
              timestamp: float, optional
                  The reference time from which times in tracing messages
                  are reported.
docstring_summary: Parameters
              ----------
              func: callable
                  The function to decorate
              cachedir: string
                  The path of the base directory to use as a data store
              ignore: list or None
                  List of variable names to ignore.
              mmap_mode: {None, 'r+', 'r', 'w+', 'c'}, optional
                  The memmapping mode used when loading from cache
                  numpy arrays. See numpy.load for the meaning of the
                  arguments.
              verbose: int, optional
                  Verbosity flag, controls the debug messages that are issued
                  as functions are revaluated. The higher, the more verbose
              timestamp: float, optional
                  The reference time from which times in tracing messages
                  are reported.
docstring_tokens: Parameters ---------- func : callable The function to decorate cachedir : string The path of the base directory to use as a data store ignore : list or None List of variable names to ignore . mmap_mode : { None r + r w + c } optional The memmapping mode used when loading from cache numpy arrays . See numpy . load for the meaning of the arguments . verbose : int optional Verbosity flag controls the debug messages that are issued as functions are revaluated . The higher the more verbose timestamp : float optional The reference time from which times in tracing messages are reported .
function: def __init__(self, func, cachedir, ignore=None, mmap_mode=None,
                   compress=False, verbose=1, timestamp=None):
          """
              Parameters
              ----------
              func: callable
                  The function to decorate
              cachedir: string
                  The path of the base directory to use as a data store
              ignore: list or None
                  List of variable names to ignore.
              mmap_mode: {None, 'r+', 'r', 'w+', 'c'}, optional
                  The memmapping mode used when loading from cache
                  numpy arrays. See numpy.load for the meaning of the
                  arguments.
              verbose: int, optional
                  Verbosity flag, controls the debug messages that are issued
                  as functions are revaluated. The higher, the more verbose
              timestamp: float, optional
                  The reference time from which times in tracing messages
                  are reported.
          """
          Logger.__init__(self)
          self._verbose = verbose
          self.cachedir = cachedir
          self.func = func
          self.mmap_mode = mmap_mode
          self.compress = compress
          if compress and mmap_mode is not None:
              warnings.warn('Compressed results cannot be memmapped',
                            stacklevel=2)
          if timestamp is None:
              timestamp = time.time()
          self.timestamp = timestamp
          if ignore is None:
              ignore = []
          self.ignore = ignore
          mkdirp(self.cachedir)
          try:
              functools.update_wrapper(self, func)
          except:
              " Objects like ufunc don't like that "
          if inspect.isfunction(func):
              doc = pydoc.TextDoc().document(func
                                      ).replace('\n', '\n\n', 1)
          else:
              # Pydoc does a poor job on other objects
              doc = func.__doc__
          self.__doc__ = 'Memoized version of %s' % doc
function_tokens: def __init__ ( self , func , cachedir , ignore = None , mmap_mode = None , compress = False , verbose = 1 , timestamp = None ) : Logger . __init__ ( self ) self . _verbose = verbose self . cachedir = cachedir self . func = func self . mmap_mode = mmap_mode self . compress = compress if compress and mmap_mode is not None : warnings . warn ( 'Compressed results cannot be memmapped' , stacklevel = 2 ) if timestamp is None : timestamp = time . time ( ) self . timestamp = timestamp if ignore is None : ignore = [ ] self . ignore = ignore mkdirp ( self . cachedir ) try : functools . update_wrapper ( self , func ) except : " Objects like ufunc don't like that " if inspect . isfunction ( func ) : doc = pydoc . TextDoc ( ) . document ( func ) . replace ( '\n' , '\n\n' , 1 ) else : # Pydoc does a poor job on other objects doc = func . __doc__ self . __doc__ = 'Memoized version of %s' % doc