On Apr 13, 5:21 am, Darryl Cousins <[email protected]> wrote:
> > It would be nice if methods were a dict rather than a list of tuples.
>
> You can make a dict out of a list of tuple pairs:
>
> dict(methods)

Right -- I didn't think of that. Then you'd do something like:

if should_reduce:
    methods_tmp = dict(methods)
    del methods_tmp['PAYMENT_PMTKEY']
    methods = tuple(methods_tmp.items())

Not really less cumbersome, but it might be a good way to go some time.

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to