def get_function_annotations(event, funcname, type=None, namespace=None):
if type:<EOL><INDENT>postfix = "<STR_LIT:|>" + type<EOL><DEDENT>else:<EOL><INDENT>postfix = "<STR_LIT>"<EOL><DEDENT>def matchfunc(key, annkey):<EOL><INDENT>"""<STR_LIT>"""<EOL>return re.match(key, annkey) is not None<EOL><DEDENT>return get_annotations(event, funcname + postfix, namespace=namespace,<EOL>matchfunc=matchfunc)<EOL>
Produce a list of function annotations in in this event.