New in version 2.0.
Abjad model of cyclic tuple:
abjad> from abjad.tools import sequencetools
abjad> cyclic_tuple = sequencetools.CyclicTuple('abcd')
abjad> cyclic_tuple
CyclicTuple([a, b, c, d])
abjad> for x in range(8):
... print x, cyclic_tuple[x]
...
0 a
1 b
2 c
3 d
4 a
5 b
6 c
7 d
Cyclic tuples overload the item-getting method of built-in tuples.
Cyclic tuples return a value for any integer index.
Cyclic tuples otherwise behave exactly like built-in tuples.
Note
Inherited from __builtin__.tuple
Raises ValueError if the value is not present.
Note
Inherited from __builtin__.tuple
x.__add__(y) <==> x+y
Note
Inherited from __builtin__.tuple
x.__contains__(y) <==> y in x
Note
Inherited from __builtin__.tuple
x.__delattr__(‘name’) <==> del x.name
Note
Inherited from __builtin__.object
x.__eq__(y) <==> x==y
Note
Inherited from __builtin__.tuple
x.__ge__(y) <==> x>=y
Note
Inherited from __builtin__.tuple
x.__gt__(y) <==> x>y
Note
Inherited from __builtin__.tuple
Note
Inherited from __builtin__.tuple
Note
Inherited from __builtin__.tuple
x.__le__(y) <==> x<=y
Note
Inherited from __builtin__.tuple
Note
Inherited from __builtin__.tuple
x.__lt__(y) <==> x<y
Note
Inherited from __builtin__.tuple
x.__mul__(n) <==> x*n
Note
Inherited from __builtin__.tuple
x.__ne__(y) <==> x!=y
Note
Inherited from __builtin__.tuple
x.__rmul__(n) <==> n*x
Note
Inherited from __builtin__.tuple
x.__setattr__(‘name’, value) <==> x.name = value
Note
Inherited from __builtin__.object