def method(name, doc):
 params = method_params(doc)
 return string.Template(METHOD_TEMPLATE).substitute(name=name, params=params, doc=doc)

def method ( name , doc ) : params = method_params ( doc ) return string . Template ( METHOD_TEMPLATE ) . substitute ( name = name , params = params , doc = doc )
documents an individual method .