term.record

Native records (Erlang/OTP 29).

class term.record.Record(module, name, exported, fields)

Bases: BaseTerm

A native record (EEP-79, OTP 29, RECORD_EXT): #Module:Name{...}. Native records are experimental in OTP 29 and 30.

Parameters:
  • module (str) – the module that defines the record, an atom

  • name (str) – the record name, an atom

  • exported (bool) – whether the module exports the record definition

  • fields (dict[str, Any]) – field name (atom) -> value, in the order of the definition; encoded in this order