DSMAttachmentFunction

class dsviper.DSMAttachmentFunction

Bases: object

An attachment function as declared: its prototype, and whether it mutates the document or only reads it.

Note: Not directly instantiable.

documentation() → str

Return the function’s documentation - its doc comment in the DSM text, or the documentation given to Definitions - empty when there is none.

is_mutable() → bool

Return True if the function mutates the state it is given.

prototype() → DSMFunctionPrototype

Return the DSMFunctionPrototype: the function name, its parameters and its return type.