Skip to content

Commit 6ae670f

Browse files
committed
Add comment so I won't bork _DynLiveView again.
1 parent 089f7cc commit 6ae670f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unpythonic/dynassign.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def __exit__(self, t, v, tb):
4646
for o in _getobservers().values():
4747
o._refresh()
4848

49+
# We need multiple observer instances, because dynamic scope stacks are thread-local.
50+
# If they weren't, this could be a singleton and the __del__ method wouldn't be needed.
4951
class _DynLiveView(ChainMap):
5052
def __init__(self):
5153
super().__init__(self)

0 commit comments

Comments
 (0)