from watchpoints import watch
a = []
watch(a)
a.append(1) # Trigger
a = {} # Trigger
HOW?! I demand an explanation.How does the second trigger fire? Deterministically, without relying on GC tricks? It’s watching a variable name, somehow.
Does it hook into globals()? But how would it know it needs to?