python equivalent of php implode
Mike Meyer
mwm at mired.org
Tue Apr 26 22:59:29 EDT 2005
Jeff Epler <jepler at unpythonic.net> writes:
> items = query_param.items()
> keys = [item[0] for item in items]
> values = [item[1] for item in items]
Is there some reason not to do:
keys = query_params.keys()
values = query_params.values()
That would seem to be a lot more obvious as to what was going on.
Thanks,
<mike
--
Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list
mailing list