def querydict_to_multidict(query_dict, wrap=None):
 wrap = (wrap or (lambda val: val))
 return MultiDict(chain.from_iterable((izip(repeat(key), (wrap(v) for v in vals)) for (key, vals) in query_dict.iterlists())))

def querydict_to_multidict ( query_dict , wrap = None ) : wrap = ( wrap or ( lambda val : val ) ) return MultiDict ( chain . from_iterable ( ( izip ( repeat ( key ) , ( wrap ( v ) for v in vals ) ) for ( key , vals ) in query_dict . iterlists ( ) ) ) )
returns a new webob .