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

Class Tuple

object --+    
     Final --+

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 for Tuple.
Instance Methods [hide private]
    Inherited from object
x.__delattr__('name') <==> del
default object formatter
x.__getattribute__('name') <==>
x.__init__(...) initializes x; see help(type(x)) for signature
helper for pickle
helper for pickle
x.__setattr__('name', value) <==> = value
size of object in memory, in bytes
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
  __tuple_use_ellipsis__ = False
Properties [hide private]
    Inherited from object
the object's class