Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '16,': 0.03; 'cc:addr :python-list': 0.11; 'python': 0.11; 'language.': 0.14; 'exist.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'where?': 0.16; 'language': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'import': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'right.': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'totally': 0.33; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'expect': 0.39; 'problems.': 0.60; 'simply': 0.61; 'to:none': 0.92 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:cc :content-type; bh=LhCzHHkqyr3ksJVgpr+FRmE0tPqitPRh+nrK9lGN6zY=; b=r9ptj2Vq4QNDxhWhpkc9R+W2fk78O4kdHG3eCPXPDl1TQzMMpGR+h2T5tftXKKd/RV raXNoiBLGWiWri+lQVfIksX4tgiS+A0EZX3Zx2MyQV3QFIUNDGRlqbQ3x8ZppbZUv2WZ AeQtwDXB+0Yh/DUJwUiElsD9MW1YQqKsya52gbVGOf2cuxl/hSLHOCp4nAYQOPK5Bbo0 C2d93+CIR4qz00t1m6HLSxZuUO4XE1kZYyfD53jSGu4FLJtOq3JFoRqwA/sQz5YcmKG6 XODsID+0GkFDDJJgrI1YZwzSJrf2+esls0ShyQyi8NvlIyJd9pI9j+O1Mg3XTzfvjvW9 2tIA== MIME-Version: 1.0 X-Received: by 10.43.141.67 with SMTP id jd3mr1188959icc.24.1413420841829; Wed, 15 Oct 2014 17:54:01 -0700 (PDT) In-Reply-To: <1a3844da-b467-43ba-b34f-3aaa6442d799@googlegroups.com> References: <1a3844da-b467-43ba-b34f-3aaa6442d799@googlegroups.com> Date: Thu, 16 Oct 2014 11:54:01 +1100 Subject: Re: Import Doesn't Import From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413420845 news.xs4all.nl 2917 [2001:888:2000:d::a6]:46712 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79189 On Thu, Oct 16, 2014 at 11:40 AM, ryguy7272 wrote: > I totally don't understand this language. Import means import. Right. WTF!!!!! Yes, but import from where? If you ask Python - or any other language - to "import asfadgt4tfihavzcxvzxcvaerg", do you expect it to succeed? It doesn't exist. In this case, you simply want "urllib", not "urllib2". You should be able to "import urllib" with no problems. ChrisA