Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #47958

Re: Must we include urllib just to decode a URL-encoded string, when using Requests?

From Robert Kern <robert.kern@gmail.com>
Subject Re: Must we include urllib just to decode a URL-encoded string, when using Requests?
Date 2013-06-13 14:20 +0100
References <CAKDXFkO6t9dkYTrughGL4DzBfAOypia7w34hkmFAN9xext9TWA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3191.1371129669.3114.python-list@python.org> (permalink)

Show all headers | View raw


On 2013-06-13 14:05, Dotan Cohen wrote:
> I am using the Requests module to access remote URLs. Sometimes I need
> to URL-decode or URL-encode a string (via RFC 3986). Must I import
> urllib or urllib2 just to use their quote() and unquote() methods?

Yes. Do you think there is a problem with doing so?

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Must we include urllib just to decode a URL-encoded string, when using Requests? Robert Kern <robert.kern@gmail.com> - 2013-06-13 14:20 +0100

csiph-web