Created
October 20, 2013 17:18
-
-
Save elpargo/7072464 to your computer and use it in GitHub Desktop.
A proper way to answer https://www.facebook.com/groups/devdominicanos/permalink/730699433613571/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Signal(object): | |
def __init__(self,providing_args): | |
pass | |
signals = {'hook': [Signal(providing_args=a) for a in ['change','...']]} | |
#output is | |
# {'hook': [<__main__.Signal object at 0x10334dcd0>, <__main__.Signal object at 0x10334dd10>]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment