<s> from connectable import Connectable <EOL> class Person ( Connectable ) : <EOL> signals = ( '<STR_LIT>' , ) <EOL> def __init__ ( self , name ) : <EOL> self . name = name <EOL> def say_hello ( self , to = None ) : <EOL> if to : <EOL> print ( "<STR_LIT>" . format ( to = to , name = self . name ) ) <EOL> else : <EOL> print ( "<STR_LIT>" . format ( name = self . name ) ) <EOL> self . emit ( '<STR_LIT>' , self . name ) <EOL> speaker = Person ( '<STR_LIT>' ) <EOL> room = ( Person ( '<STR_LIT>' ) , Person ( '<STR_LIT>' ) , Person ( '<STR_LIT>' ) , Person ( '<STR_LIT>' ) ) <EOL> heckler = Person ( '<STR_LIT>' ) <EOL> for person in room : <EOL> speaker . connect ( '<STR_LIT>' , person . say_hello ) <EOL> speaker . connect ( '<STR_LIT>' , heckler . say_hello , transform = '<STR_LIT>' ) <EOL> speaker . say_hello ( ) </s>
