Feature Request [Quality of life]: Remove memory addresses/id
s of objects from Op
versioning
#3068
Labels
enhancement
New feature or request
Background
Right now, memory addresses in the
repr
of instantiated objects cause spurious diffs when versioning Ops in Weave. This makes it difficult to track meaningful changes between runs.Workaround
I use the following utility method to remove
at <memory_address>
from reprs to eliminate those spurious diffs:Question
Is there something more foundational that can be done to cover this issue globally?
Code?
Digging around the codebase, are these the appropriate places?
weave/weave/trace/serialize.py
Lines 98 to 111 in a76414b
weave/weave/trace/serialize.py
Lines 214 to 226 in a76414b
But I guess that wouldn't cover the case of a bad
repr
in which case an object'sid
could create a spurious diff as well, ex.The text was updated successfully, but these errors were encountered: