def itemHash(self, *items):
	"""
	Returns a hash of arbitrary items.  This is intended to be
	used for fine-grained control of dependencies on parameters;
	the resulting value can passed to :ref:`inCache`,
	:ref:`loadFromCache`, and :ref:`saveToCache`.  For example::

          key = self.itemHash(self.p.x1, self.p.x2)

          if self.inCache(key):
              return self.loadFromCache(key)
          else:
              # process, create obj

              self.saveToCache(key, obj)

        Note that most of this functionality is provided by specifying
        `items` as a tuple to the key argument of :ref:inCache,
        :ref:loadFromCache, or :ref:saveToCache.
        
	"""

	t = TreeDict()

	for n, it in enumerate(items):
	    t[n % "b%d"] = it

	return t.hash()
dataset/ETHPy150Open hoytak/lazyrunner/lazyrunner/pmodule/pmodulebase.py/PModule.itemHash/swapped operands of `%`