Must we include urllib just to decode a URL-encoded string, when using Requests?
Burak Arslan
burak.arslan at arskom.com.tr
Thu Jun 13 09:44:37 EDT 2013
On 06/13/13 16:25, Dotan Cohen wrote:
> On Thu, Jun 13, 2013 at 4:20 PM, Robert Kern <robert.kern at gmail.com> wrote:
>> Yes. Do you think there is a problem with doing so?
>>
> I'm pretty sure that Requests will use either urllib or urllib2,
> depending on what is available on the server. I would like to use
> whatever Requests is currently using, rather than import the other.
> Can I tell which library Requests is currently using and use that?
>
paste this to your python console, it'll show you what modules requests
imports:
import sys
p = set(sys.modules)
import requests
for m in sorted(set(sys.modules) - p):
print(m)
burak
More information about the Python-list
mailing list