Version: 9.8.0
diclookup
Collaboration diagram for diclookup:

Data Structures

class  diclookup.Lookup
 a dictionary which can lookup value by key, or keys by value More...
 
class  KERNEL_PY.kernel.diclookup.Lookup
 a dictionary which can lookup value by key, or keys by value More...
 

Functions

def diclookup.find_key (dic, val)
 return the key of dictionary dic given the value More...
 
def diclookup.find_value (dic, key)
 return the value of dictionary dic given the key More...
 
def KERNEL_PY.kernel.diclookup.find_key (dic, val)
 return the key of dictionary dic given the value More...
 
def KERNEL_PY.kernel.diclookup.find_value (dic, key)
 return the value of dictionary dic given the key More...
 

Detailed Description

Smart dictionary with key/value lookup

Function Documentation

◆ find_key() [1/2]

def diclookup.find_key (   dic,
  val 
)

return the key of dictionary dic given the value

Referenced by TEST_find_value().

◆ find_key() [2/2]

def KERNEL_PY.kernel.diclookup.find_key (   dic,
  val 
)

return the key of dictionary dic given the value

return the key of dictionary dic given the value

Referenced by KERNEL_PY.kernel.diclookup.TEST_find_value().

◆ find_value() [1/2]

def diclookup.find_value (   dic,
  key 
)

return the value of dictionary dic given the key

Referenced by TEST_find_value().

◆ find_value() [2/2]

def KERNEL_PY.kernel.diclookup.find_value (   dic,
  key 
)

return the value of dictionary dic given the key

return the value of dictionary dic given the key

Referenced by KERNEL_PY.kernel.diclookup.TEST_find_value().