Retrieving values
Since values are stored as Node objects, object retrieval will look something like this:PYNDatabase.Node.Node.val
val
is a variable which contains the value of the Node, and is linked to the original dictionary object.
To retrieve a dynamic object, you can use the get
method.
This way, you can avoid writing code like this:eval(f'PYNDatabase.Node.{name_of_node}.Node.val')
Command Usage:
PYNDatabase.Node.get('name_of_node').Node.valname)