atom.dict module

class atom.dict.DefaultDict(key=None, value=None, default=None, *, missing=None)[source]

Bases: Member

A value of type dict implementing __missing__

clone()[source]

Create a clone of the member.

This will clone the internal dict key and value members if they exist.

set_index(index)[source]

Assign the index to this member.

This method is called by the Atom metaclass when a class is created. This makes sure the index of the internal members are also updated.

set_name(name)[source]

Assign the name to this member.

This method is called by the Atom metaclass when a class is created. This makes sure the name of the internal members are also updated.

class atom.dict.Dict(key=None, value=None, default=None)[source]

Bases: Member

A value of type dict.

clone()[source]

Create a clone of the member.

This will clone the internal dict key and value members if they exist.

set_index(index)[source]

Assign the index to this member.

This method is called by the Atom metaclass when a class is created. This makes sure the index of the internal members are also updated.

set_name(name)[source]

Assign the name to this member.

This method is called by the Atom metaclass when a class is created. This makes sure the name of the internal members are also updated.