curl-and-python
Re: Curl Object - unset range option
From: Wim Lewis <wiml_at_omnigroup.com>
Date: Mon, 25 Jul 2011 16:57:06 -0700
Date: Mon, 25 Jul 2011 16:57:06 -0700
On 13 Jul 2011, at 12:24 AM, Michael Wood wrote:
> So perhaps you could try c.unsetopt(...) instead of c.setopt(..., None).
setopt() doesn't have this behavior currently, but there's some commented-out code in pycurl to support making c.setopt(..., None) equivalent to c.unsetopt(...):
> #if 0 /* XXX - should we ??? */
> /* Handle the case of None */
> if (obj == Py_None) {
> return util_curl_unsetopt(self, option);
> }
> #endif
It's not clear to me if there was a specific reason not to do this...
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2011-07-26