Guest User

Untitled

a guest
May 26th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. class Signal(object):
  2. """
  3. Base class for all signals
  4.  
  5. Internal attributes:
  6.  
  7. receivers
  8. { receriverkey (id) : weakref(receiver) }
  9. """
  10.  
  11. def __init__(self, providing_args=None):
  12. """
  13. Create a new signal.
  14.  
  15. providing_args
  16. A list of the arguments this signal can pass along in a send() call.
  17. """
  18. self.receivers = []
  19. if providing_args is None:
  20. providing_args = []
  21. self.providing_args = set(providing_args)
Add Comment
Please, Sign In to add comment