curl-and-python
postfields and unicode objects
From: Seth Vidal <skvidal_at_fedoraproject.org>
Date: Thu, 13 Aug 2009 10:55:40 -0400 (EDT)
Date: Thu, 13 Aug 2009 10:55:40 -0400 (EDT)
Hi,
using pycurl 7.19.0 and curl 7.19.4. I've found if I submit a unicode
object to the postfields option using setopt() that I get a type error
TypeError: invalid arguments to setopt
if I coerce the unicode object to a string using str(obj) then it works
but that coercion will sometimes fail due to unicode decode problems.
Now, my question: is there any reason this HAS to be a string object and
can't be a unicode object and if so should I file it as an issue with
pycurl?
Thanks,
-sv
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2009-08-13