A simple set class.
This class was originally used to deal with sets being missing in
ancient versions of python, but dnspython will continue to use it as
these sets are based on lists and are thus indexable, and this ability is
widely used in dnspython applications.
|
|
|
|
|
|
|
remove(self,
item)
Remove an item from the set. |
source code
|
|
|
discard(self,
item)
Remove an item from the set if present. |
source code
|
|
|
|
|
__copy__(self)
Make a (shallow) copy of the set. |
source code
|
|
|
copy(self)
Make a (shallow) copy of the set. |
source code
|
|
|
union_update(self,
other)
Update the set, adding any elements from other which are not already
in the set. |
source code
|
|
|
intersection_update(self,
other)
Update the set, removing any elements from other which are not in
both sets. |
source code
|
|
|
difference_update(self,
other)
Update the set, removing any elements from other which are in the
set. |
source code
|
|
|
union(self,
other)
Return a new set which is the union of ``self`` and ``other``. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
update(self,
other)
Update the set, adding any elements from other which are not already
in the set. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|