atom.tuple module

class atom.tuple.Tuple(item=None, default=())[source]

Bases: atom.catom.Member

A member which allows tuple values.

If item validation is used, then assignment will create a copy of the original tuple before validating the items, since validation may change the item values.

clone()[source]

Create a clone of the tuple.

This will clone the internal tuple item if one is in use.

item
set_index(index)[source]

Assign the index to this member.

This method ensures that the item member index is also updated.

set_name(name)[source]

Set the name of the member.

This method ensures that the item member name is also updated.