Skip to content

Commit

Permalink
shorten summary
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Sep 5, 2023
1 parent b138897 commit 6f95bca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pyhf/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ def __call__(self, *args, **kwargs):
func()(arg_ref, *args, **kwargs)
else:
func()(*args, **kwargs)
# We have to flush after calling all the callbacks, not before. That's
# because, earlier callbacks might cause new dead arg weakrefs in
# later callbacks. So we check for dead weakrefs in each iteration
# and then we flush at the end.
# flush after calling all the callbacks, not before, as earlier
# callbacks might cause new dead arg weakrefs in later callbacks.
# So check for dead weakrefs in each iteration and flush at the end.
self._flush()

def __iter__(self):
Expand Down

0 comments on commit 6f95bca

Please sign in to comment.