Package commons :: Module structs :: Class bidict
[hide private]
[frames] | no frames]

Class bidict

source code

object --+
         |
        bidict

Bi-directional dictionary; assumes 1:1 mappings.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
add(self, a, b) source code
 
get_a(self, a) source code
 
get_b(self, b) source code
 
get_a_default(self, a, d=None) source code
 
get_b_default(self, b, d=None) source code
 
contains_a(self, a) source code
 
contains_b(self, b) source code
 
__len__(self) source code
 
items(self) source code
 
a_values(self) source code
 
b_values(self) source code
 
clear(self) source code
 
remove_a(self, a) source code
 
remove_b(self, b) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)