def liveReceivers(receivers):
 for receiver in receivers:
  if isinstance(receiver, WEAKREF_TYPES):
   receiver = receiver()
   if (receiver is not None):
    (yield receiver)
  else:
   (yield receiver)

def liveReceivers ( receivers ) : for receiver in receivers : if isinstance ( receiver , WEAKREF_TYPES ) : receiver = receiver ( ) if ( receiver is not None ) : ( yield receiver ) else : ( yield receiver )
filter sequence of receivers to get resolved .