Package muntjac :: Module util :: Class OrderedSet
[hide private]
[frames] | no frames]

Class OrderedSet

source code

       object --+            
                |            
    _abcoll.Sized --+        
                    |        
       object --+   |        
                |   |        
 _abcoll.Iterable --+        
                    |        
       object --+   |        
                |   |        
_abcoll.Container --+        
                    |        
          _abcoll.Set --+    
                        |    
       _abcoll.MutableSet --+
                            |
                           OrderedSet

Nested Classes [hide private]

Inherited from _abcoll.Sized: __metaclass__

Instance Methods [hide private]
 
__init__(self, iterable=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__len__(self) source code
 
__contains__(self, key) source code
 
add(self, key)
Add an element.
source code
 
discard(self, key)
Remove an element.
source code
 
__iter__(self) source code
 
__reversed__(self) source code
 
pop(self, last=True)
Return the popped value.
source code
 
__repr__(self)
repr(x)
source code
 
__eq__(self, other) source code
 
__del__(self) source code

Inherited from _abcoll.MutableSet: __iand__, __ior__, __isub__, __ixor__, clear, remove

Inherited from _abcoll.Set: __and__, __ge__, __gt__, __le__, __lt__, __ne__, __or__, __sub__, __xor__, isdisjoint

Inherited from _abcoll.Set (private): _hash

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

Class Methods [hide private]

Inherited from _abcoll.Set (private): _from_iterable

Inherited from _abcoll.Sized: __subclasshook__

Class Variables [hide private]
  __abstractmethods__ = frozenset([])
  _abc_negative_cache = <_weakrefset.WeakSet object at 0xb22ad0>
  _abc_negative_cache_version = 18
  _abc_registry = <_weakrefset.WeakSet object at 0xb00a10>

Inherited from _abcoll.Set: __hash__

Inherited from _abcoll.Sized (private): _abc_cache

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, iterable=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__len__(self)
(Length operator)

source code 
Overrides: _abcoll.Sized.__len__

__contains__(self, key)
(In operator)

source code 
Overrides: _abcoll.Container.__contains__

add(self, key)

source code 

Add an element.

Overrides: _abcoll.MutableSet.add
(inherited documentation)

discard(self, key)

source code 

Remove an element. Do not raise an exception if absent.

Overrides: _abcoll.MutableSet.discard
(inherited documentation)

__iter__(self)

source code 
Overrides: _abcoll.Iterable.__iter__

pop(self, last=True)

source code 

Return the popped value. Raise KeyError if empty.

Overrides: _abcoll.MutableSet.pop
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__eq__(self, other)
(Equality operator)

source code 
Overrides: _abcoll.Set.__eq__