On Thu, Aug 15, 2013 at 7:12 PM, cerr <ron.egg...@gmail.com> wrote:
>         multipart = ({"data":data}, {"fname":fname}, {"f":f})
>
> but I get an error saying "'tuple' object has no attribute 'items'"... how do 
> I do this correctly?

You're no longer providing a dictionary, but a tuple of dictionaries.
What you want to do is use a single dictionary:

multipart = {"data":data, "fname":fname, "f":f}

That should achieve what you want.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to