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


Groups > comp.lang.python > #47959

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <dotancohen@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'that?': 0.05; 'so?': 0.09; 'subject:string': 0.09; 'subject:using': 0.09; 'cc:addr:python- list': 0.11; 'kern': 0.16; 'subject: \n ': 0.16; 'subject:URL': 0.16; 'subject:when': 0.16; 'to:addr:robert.kern': 0.16; 'to:name:robert kern': 0.16; 'urllib': 0.16; 'urllib2,': 0.16; 'using,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'thu,': 0.19; 'import': 0.22; 'cc:addr:python.org': 0.22; 'server.': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'robert': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'requests': 0.31; '13,': 0.31; 'yes.': 0.31; 'problem': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'doing': 0.36; 'subject:?': 0.36; 'whatever': 0.38; 'pm,': 0.38; 'rather': 0.38; 'sure': 0.39; 'either': 0.39; 'tell': 0.60; 'to:addr:gmail.com': 0.65; 'url:co': 0.67; 'other.': 0.75; 'subject:Must': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=og6MzSAv8xV51tMOgJpFY4/yQil6UjsH4ekl5OgPV0I=; b=gL4JAsidsLgb+8KRRKNEvbGhR5aVd5YPeeCP7humE9xavjwLGVhnTlNL+Bn0+nNRam ro7n9ArWyhKJ3M8KB+wZnQO7T6+xkF5btLP8CY5Z0VeUoQpd9nBOGZjcaeQbLGNyJZMI n4RKpCH6KyFPR2E/dmCsfI3VJVY20Aa54iH8118483XSkAzDSCht6tnkUafIOO62FFxY Biv6YqJocP7r9Gdo3kFV1cMlFVb60wo3fSlj9BbxmFNt6lkFJWtdTK1P+yBVHyiXAwIX XnXmjGQmyNQFU+3sc0RChQ7E+f5r+yQQk8nMWX6NlBxQ+juVh9fO/dKDnDvf9f2JWuV/ PoEw==
MIME-Version 1.0
X-Received by 10.194.121.132 with SMTP id lk4mr626328wjb.25.1371129906322; Thu, 13 Jun 2013 06:25:06 -0700 (PDT)
In-Reply-To <kpcgvj$m7p$1@ger.gmane.org>
References <CAKDXFkO6t9dkYTrughGL4DzBfAOypia7w34hkmFAN9xext9TWA@mail.gmail.com> <kpcgvj$m7p$1@ger.gmane.org>
Date Thu, 13 Jun 2013 16:25:06 +0300
Subject Re: Must we include urllib just to decode a URL-encoded string, when using Requests?
From Dotan Cohen <dotancohen@gmail.com>
To Robert Kern <robert.kern@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list." <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3192.1371129909.3114.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371129909 news.xs4all.nl 15920 [2001:888:2000:d::a6]:41783
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:47959

Show key headers only | View raw


On Thu, Jun 13, 2013 at 4:20 PM, Robert Kern <robert.kern@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?

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

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? Dotan Cohen <dotancohen@gmail.com> - 2013-06-13 16:25 +0300

csiph-web