#NEWLINE# def map( self , key , func , * args , **kwargs ) : #NEWLINE# #INDENT# 'Creates a key-function mapping.\n\n        The return value from the function should be either\n          - A tuple containing a name and stream\n          - A iterator of tuples containing a name and stream\n\n        Any extra arguments will be passed to the function.\n        ' #NEWLINE# self . _map . append ( ( key , partial ( kwargs , * args , ** kwargs ) ) )