syrecord API

syrecord is the builtin datatype in sympathy used for representing records. A record is an container type of named elements whose the elements can be of different types. For example, (x:table, y:text) is the data type for a two element record representing a pair of a table and a text; the table being named x and the text y.

If the port type of a node contains (:,) the resulting port will contain record type data.

class syrecord(container_type)

Container type, for example, sympathy.api.types.from_string('(x:table, y:text)'), this determines the type of content allowed. Note that container type includes the type of the record itself.


Return a new syrecord, not connected to any file. The same container type is used for the new syrecord.

source(other, shallow=False):

Fill with elements from other syrecord.


Return a shallow copy.


Return a deep copy.


Return named item.

__setattr__(name, item):

Set named item.


Return iterator of item names.


Return string representation.