Package horizons :: Package ext :: Module typing :: Class Tuple
[hide private]
[frames] | no frames]

Class Tuple

object --+    
         |    
     Final --+
             |
            Tuple

Tuple type; Tuple[X, Y] is the cross-product type of X and Y.

Example: Tuple[T1, T2] is a tuple of two elements corresponding to type variables T1 and T2. Tuple[int, float, str] is a tuple of an int, a float and a string.

To specify a variable-length tuple of homogeneous type, use Sequence[T].

Nested Classes [hide private]
  __metaclass__
Metaclass for Tuple.
Instance Methods [hide private]
    Inherited from object
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__format__(...)
default object formatter
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__hash__(x)
hash(x)
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__reduce__(...)
helper for pickle
 
__reduce_ex__(...)
helper for pickle
 
__repr__(x)
repr(x)
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
int
__sizeof__()
size of object in memory, in bytes
 
__str__(x)
str(x)
 
__subclasshook__(...)
Abstract classes can override this to customize issubclass().
Static Methods [hide private]
    Inherited from Final
a new object with type S, a subtype of T
__new__(self, *args, **kwds)
Class Variables [hide private]
  __tuple_params__ = None
hash(x)
  __tuple_use_ellipsis__ = False
Properties [hide private]
    Inherited from object
  __class__
the object's class