def __init__ ( self , function ) : super ( filter , self ) . __init__ ( ) self . function = function
python filter object at
function : to be called with each stream element as its only argument
def __init__(self, function):
		"""function: to be called with each stream element as its
		only argument
		"""
		super(filter, self).__init__()
		self.function = function