pyds.Object

class pyds.Object(identifier, object_statements, validate_identifier=True)

Bases: pyds.Statement

Represents a PDS object statement.

Parameters
  • identifier (str)

    Identifier of the object.

  • object_statements (ObjectStatements)

    Nested statements of the object.

  • validate_identifier (True or False)

    Whether identifier should be checked to see if it’s a valid identifer for a PDS object statement. Default is True.

Raises
Attributes
identifier

Identifier of the object statement. A str instance. Read-only.

statements

Nested statements of the object statement. A ObjectStatements instance. Read-only.

value

Same as statements.


Special Methods

Object.__str__()

Return a PDS serialized string (str) representing the object.

Called by str().