Skip to content

Class swarmauri_standard.tracing.TracedVariable.TracedVariable

swarmauri_standard.tracing.TracedVariable.TracedVariable

TracedVariable(name, value, tracer)

Wrapper class to trace multiple changes to a variable within the context manager.

Source code in swarmauri_standard/tracing/TracedVariable.py
10
11
12
13
14
def __init__(self, name: str, value: Any, tracer: SimpleTracer):
    self.name = name
    self._value = value
    self._tracer = tracer
    self._changes = []  # Initialize an empty list to track changes

name instance-attribute

name = name

value property writable

value