parameters: (self, xpath)
return_statement: return result
docstring: result = self.cache_xpath.get(xpath)
          if result:
              return result
          if result == []:
              return result
          #print(xpath)
          result = Evaluate(xpath, self.doc)
          self.cache_xpath[xpath] = result
          return result
docstring_summary: result = self.cache_xpath.get(xpath)
          if result:
              return result
          if result == []:
              return result
          #print(xpath)
          result = Evaluate(xpath, self.doc)
          self.cache_xpath[xpath] = result
          return result
docstring_tokens: result = self . cache_xpath . get ( xpath ) if result : return result if result == [] : return result #print ( xpath ) result = Evaluate ( xpath self . doc ) self . cache_xpath [ xpath ] = result return result
function: def _evaluate(self, xpath):
          cache = Container.get("XML:xpath_cache")
          if cache == None:
              cache = {}
              Container.put("XML:xpath_cache", cache)
  
          #key = "%s|%s" % (str(self.doc), xpath)
          num = Common.randint(0, 500000)
          key = "%s_%s|%s" % (str(self.doc), num, xpath)
          result = cache.get(key)
          if result == None:
              result = Evaluate(xpath, self.doc)
              cache[key] = result
              #print(xpath)
          else:
              #print("reuse")
              pass
  
          return result
  
          '''
          result = self.cache_xpath.get(xpath)
          if result:
              return result
          if result == []:
              return result
          #print(xpath)
          result = Evaluate(xpath, self.doc)
          self.cache_xpath[xpath] = result
          return result
          '''
function_tokens: def _evaluate ( self , xpath ) : cache = Container . get ( "XML:xpath_cache" ) if cache == None : cache = { } Container . put ( "XML:xpath_cache" , cache ) #key = "%s|%s" % (str(self.doc), xpath) num = Common . randint ( 0 , 500000 ) key = "%s_%s|%s" % ( str ( self . doc ) , num , xpath ) result = cache . get ( key ) if result == None : result = Evaluate ( xpath , self . doc ) cache [ key ] = result #print(xpath) else : #print("reuse") pass return result