Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!hq-usenetpeers.eweka.nl!hq-usenetpeers.eweka.nl!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'referring': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:language': 0.09; 'python': 0.11; 'doing),': 0.16; 'finney': 0.16; 'it;': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'scholar,': 0.16; 'url:urllib': 0.16; 'users.': 0.18; 'version.': 0.19; 'seems': 0.21; 'header :User-Agent:1': 0.23; 'references': 0.26; 'header:X-Complaints- To:1': 0.27; "i'm": 0.30; '(which': 0.31; 'writes:': 0.31; 'quite': 0.32; 'url:python': 0.33; 'link.': 0.33; 'subject:the': 0.34; 'subject: (': 0.35; 'but': 0.35; 'url:org': 0.36; 'so,': 0.37; 'ben': 0.38; 'url:library': 0.38; 'version,': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'users': 0.40; 'read': 0.60; 'life,': 0.60; 'new': 0.61; 'url:3': 0.61; "you'll": 0.62; 'kind': 0.63; 'more': 0.64; 'articles': 0.65; 'situation': 0.65; 'normal.': 0.68; 'received:125': 0.84; 'subject:recommended': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Python 3 is the active language, recommended for newcomers (was: Import Doesn't Import) Date: Thu, 16 Oct 2014 12:35:29 +1100 References: <1a3844da-b467-43ba-b34f-3aaa6442d799@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:s4B8g5cTZj0rzUaWuOvQyD4Hx7E= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413423345 news.xs4all.nl 2969 [2001:888:2000:d::a6]:36426 X-Complaints-To: abuse@xs4all.nl X-Received-Body-CRC: 1187176885 X-Received-Bytes: 4235 Xref: csiph.com comp.lang.python:79195 ryguy7272 writes: > So, I'm reading this link. > https://docs.python.org/2/howto/urllib2.html Note that this is the documentation for Python 2, which is obsolescent. It has had a long life, so references to Python on the web are still dominantly about that legacy version. Your confusion is quite normal. Instead, use Python 3 only (which it seems you are doing), and read the Python 3 documentation. You'll find that the ‘urllib’ modules are what you want. > I don't get it; I just don't get it. It's unfortunate that a lot of new Python users will be confused by this long transition. But the situation is a lot better now; more and more Python articles on the web are referring to Python 3 which is the actively-developed version, recommended for new users. -- \ “You don't need a book of any description to help you have some | `\ kind of moral awareness.” —Dr. Francesca Stavrakoloulou, bible | _o__) scholar, 2011-05-08 | Ben Finney