'Return an iterator over all current subscriptions after
resetting internal subscription state to forget about all of
them.'

def _itersubscriptions(self):

    subscriptions = self._subscriptions[:]
    del self._subscriptions[:]
    return iter(subscriptions)
