Package couchdbkit :: Package schema :: Module properties :: Class LazySet
[hide private]
[frames] | no frames]

Class LazySet

source code

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

Object to make sure that we keep set and _doc synchronized.

We sub-class MutableSet and maintain changes in doc.

Note that methods like union that return a set object do not alter _doc, while methods like update that change a set object in-place do keep _doc in sync.

Nested Classes [hide private]

Inherited from _abcoll.Sized: __metaclass__

Instance Methods [hide private]
 
_map_named_operation(opname) source code
 
issubset(self, other, fn=<function __le__ at 0x105a75b18>) source code
 
issuperset(self, other, fn=<function __ge__ at 0x105a75c80>) source code
 
symmetric_difference(self, other, fn=<function __xor__ at 0x105a790c8>) source code
 
__init__(self, doc, item_type=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
repr(x)
source code
 
__iand__(self, iterator) source code
 
__iter__(self) source code
 
__len__(self) source code
 
__contains__(self, item) source code
 
__xor__(self, other) source code
 
__gt__(self, other) source code
 
__ge__(self, other) source code
 
__ne__(self, other) source code
 
add(self, value)
Add an element.
source code
 
copy(self) source code
 
difference(self, other, *args) source code
 
difference_update(self, other, *args) source code
 
discard(self, value)
Remove an element.
source code
 
intersection(self, other, *args) source code
 
intersection_update(self, other, *args) source code
 
symmetric_difference_update(self, other) source code
 
union(self, other, *args) source code
 
update(self, other, *args) source code

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

Inherited from _abcoll.Set: __and__, __eq__, __le__, __lt__, __or__, __sub__, isdisjoint

Inherited from _abcoll.Set (private): _hash

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

Class Methods [hide private]
 
_from_iterable(cls, it)
Construct an instance of the class from any iterable input.
source code

Inherited from _abcoll.Sized: __subclasshook__

Class Variables [hide private]
  __abstractmethods__ = frozenset([])
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x106594590>
  _abc_negative_cache_version = 23
hash(x)
  _abc_registry = <_weakrefset.WeakSet object at 0x106594490>

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, doc, item_type=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

_from_iterable(cls, it)
Class Method

source code 

Construct an instance of the class from any iterable input.

Must override this method if the class constructor signature does not accept an iterable for an input.

Overrides: _abcoll.Set._from_iterable
(inherited documentation)

__iand__(self, iterator)

source code 
Overrides: _abcoll.MutableSet.__iand__

__iter__(self)

source code 
Overrides: _abcoll.Iterable.__iter__

__len__(self)
(Length operator)

source code 
Overrides: _abcoll.Sized.__len__

__contains__(self, item)
(In operator)

source code 
Overrides: _abcoll.Container.__contains__

__xor__(self, other)
(Exclusive-Or operator)

source code 
Overrides: _abcoll.Set.__xor__

__gt__(self, other)
(Greater-than operator)

source code 
Overrides: _abcoll.Set.__gt__

__ge__(self, other)
(Greater-than-or-equals operator)

source code 
Overrides: _abcoll.Set.__ge__

__ne__(self, other)

source code 
Overrides: _abcoll.Set.__ne__

add(self, value)

source code 

Add an element.

Overrides: _abcoll.MutableSet.add
(inherited documentation)

discard(self, value)

source code 

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

Overrides: _abcoll.MutableSet.discard
(inherited documentation)