frozenset :: Class frozenset
[hide private]
[frames] | no frames]

Class frozenset

object --+
         |
        frozenset
Known Subclasses:

frozenset() -> empty frozenset object frozenset(iterable) -> frozenset object

Build an immutable unordered collection of unique elements.

Instance Methods [hide private]
 
__and__(x, y)
x&y
 
__cmp__(x, y)
cmp(x,y)
 
__contains__(x, y)
y in x.
 
__eq__(x, y)
x==y
 
__ge__(x, y)
x>=y
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__gt__(x, y)
x>y
 
__hash__(x)
hash(x)
 
__iter__(x)
iter(x)
 
__le__(x, y)
x<=y
 
__len__(x)
len(x)
 
__lt__(x, y)
x<y
 
__ne__(x, y)
x!=y
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__or__(x, y)
x|y
 
__rand__(x, y)
y&x
 
__reduce__(...)
Return state information for pickling.
 
__repr__(x)
repr(x)
 
__ror__(x, y)
y|x
 
__rsub__(x, y)
y-x
 
__rxor__(x, y)
y^x
size of S in memory, in bytes
__sizeof__(S)
size of object in memory, in bytes
 
__sub__(x, y)
x-y
 
__xor__(x, y)
x^y
 
copy(...)
Return a shallow copy of a set.
 
difference(...)
Return the difference of two or more sets as a new set.
 
intersection(...)
Return the intersection of two or more sets as a new set.
 
isdisjoint(...)
Return True if two sets have a null intersection.
 
issubset(...)
Report whether another set contains this set.
 
issuperset(...)
Report whether this set contains another set.
 
symmetric_difference(...)
Return the symmetric difference of two sets as a new set.
 
union(...)
Return the union of sets as a new set.
    Inherited from object
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__format__(...)
default object formatter
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__reduce_ex__(...)
helper for pickle
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
 
__str__(x)
str(x)
 
__subclasshook__(...)
Abstract classes can override this to customize issubclass().
Properties [hide private]
    Inherited from object
  __class__
the object's class
Method Details [hide private]

__getattribute__(...)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__

__hash__(x)
(Hashing function)

 

hash(x)

Overrides: object.__hash__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__reduce__(...)

 

Return state information for pickling.

Overrides: object.__reduce__

__repr__(x)
(Representation operator)

 

repr(x)

Overrides: object.__repr__

__sizeof__(S)

 

size of object in memory, in bytes

Returns: size of S in memory, in bytes
Overrides: object.__sizeof__

difference(...)

 

Return the difference of two or more sets as a new set.

(i.e. all elements that are in this set but not the others.)

intersection(...)

 

Return the intersection of two or more sets as a new set.

(i.e. elements that are common to all of the sets.)

symmetric_difference(...)

 

Return the symmetric difference of two sets as a new set.

(i.e. all elements that are in exactly one of the sets.)

union(...)

 

Return the union of sets as a new set.

(i.e. all elements that are in either set.)