We are rearranging items in a list-like property in Perspective. I think the actual type is ArrayWrapper
.
One of our bits of code needs to swap two items, and we'd like it to be as close to "atomic" as possible since other things are bound to the list. We're currently using this Python idiom to do it:
self.view.custom.foo[i], self.view.custom.foo[j] = self.view.custom.foo[j], self.view.custom.foo[i]
It appears to be working but is making me itch that this could bite us in the butt some day. Will the Ignition Perspective types be sane behind the scenes? Could this trigger double updates of other things bound to the list?