atom.list module

class atom.list.List(item=None, default=None)[source]

Bases: atom.catom.Member

A member which allows list values.

Assigning to a list creates a copy. The orginal list will remain unmodified. This is similar to the semantics of the assignment operator on the C++ STL container classes.

clone()[source]

Create a clone of the list.

This will clone the internal list 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.