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


Groups > comp.lang.python > #79189

Re: Import Doesn't Import

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 <rosuav@gmail.com>
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 <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14902.1413420845.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Thu, Oct 16, 2014 at 11:40 AM, ryguy7272 <ryanshuell@gmail.com> 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

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


Thread

Import Doesn't Import ryguy7272 <ryanshuell@gmail.com> - 2014-10-15 17:40 -0700
  Re: Import Doesn't Import ryguy7272 <ryanshuell@gmail.com> - 2014-10-15 17:44 -0700
    Re: Import Doesn't Import Dan Stromberg <drsalists@gmail.com> - 2014-10-15 18:19 -0700
    Re: Import Doesn't Import Terry Reedy <tjreedy@udel.edu> - 2014-10-15 22:43 -0400
    Re: Import Doesn't Import Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-16 09:01 +0100
  Re: Import Doesn't Import Chris Angelico <rosuav@gmail.com> - 2014-10-16 11:54 +1100
  Re: Import Doesn't Import Dan Stromberg <drsalists@gmail.com> - 2014-10-15 18:12 -0700
  Re: Import Doesn't Import MRAB <python@mrabarnett.plus.com> - 2014-10-16 02:13 +0100
  Python 3 is the active language, recommended for newcomers (was: Import Doesn't Import) Ben Finney <ben+python@benfinney.id.au> - 2014-10-16 12:35 +1100
  Re: Import Doesn't Import Chris Rebert <clp2@rebertia.com> - 2014-10-15 18:21 -0700
  Re: Import Doesn't Import Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-10-15 22:11 -0400
  Re: Import Doesn't Import Emile van Sebille <emile@fenx.com> - 2014-10-16 14:29 -0700
  Re: Import Doesn't Import Joel Goldstick <joel.goldstick@gmail.com> - 2014-10-16 18:28 -0400
  Re: Import Doesn't Import Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-16 23:56 +0100

csiph-web