Version: 8.3.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
diclookup

Data Structures

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

Functions

def diclookup.find_key
 return the key of dictionary dic given the value More...
 
def diclookup.find_value
 return the value of dictionary dic given the key More...
 

Detailed Description

Smart dictionnary with key/value lookup

Function Documentation

def diclookup.find_key (   dic,
  val 
)

return the key of dictionary dic given the value

def diclookup.find_value (   dic,
  key 
)

return the value of dictionary dic given the key