Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; '#include': 0.09; 'subject:language': 0.09; 'works.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '"system': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'module?': 0.16; 'roy': 0.16; 'subject:programming': 0.16; 'sys.path': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'import': 0.22; 'separate': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'source': 0.25; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'quickly': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'common': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'library.': 0.36; 'pm,': 0.38; 'that,': 0.38; 'either': 0.39; 'how': 0.40; "you've": 0.63; 'here': 0.66; 'smith': 0.68; 'day': 0.76; 'as:': 0.81; 'to:none': 0.92; '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:cc :content-type; bh=Iw3YfSeO26eKVQMr2uddXFlPLOgzTU+oUg8YXjV93XE=; b=c8MmK48M+3U/IhcRXwBLaTxV8qpgSPVsN4mQbnuTb/V+cNCemkcUktm9qsWHY/GME+ DFJeUUTHU94H/PEJMayl7cxOgpEorhdy4EmCB1xhvnkJzlVJZ+8sZUJf16XKb0oRM34f 1Ig0cwla1wFlgXI1b9eU5p+hTNuPC/zVV1tON9LN+p2kEb/cxzDOMNzQwmyzjrpI0OTh P7qxhfTmpmIvBNhRixdr5tp3q9MpUuMv1mcCySStr9qVfNqsntV5VF8oQZXRCklHrCDn Xafw+WtgOIpwnPeKHmJC0vHRH7Z5ltF9cNReS4TL4aJ+rJfpt1yUI+mIFTEC7DUWOZnR wSGg== MIME-Version: 1.0 X-Received: by 10.68.236.233 with SMTP id ux9mr38261265pbc.45.1387427195173; Wed, 18 Dec 2013 20:26:35 -0800 (PST) In-Reply-To: References: <20131212213602.806ef8fd2626ca6f34bc83d6@gmx.net> <20131216213225.2006b30246e3a08ee241a191@gmx.net> <20131217165144.39bf9ba1cd4e4f27a96893ca@gmx.net> <07c6e6a3-c5f4-4846-9551-434bdaba8b50@googlegroups.com> Date: Thu, 19 Dec 2013 15:26:34 +1100 Subject: Re: Experiences/guidance on teaching Python as a first programming language 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387427204 news.xs4all.nl 2832 [2001:888:2000:d::a6]:39678 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62366 On Thu, Dec 19, 2013 at 3:16 PM, Roy Smith wrote: > It's pretty common here to have people ask questions about how import > works. How altering sys.path effects import. Why is import not finding > my module? You quickly get into things like virtualenv, and now you've > got modules coming from your source tree, from your vitualenv, from your > system library. You need to understand all of that to make it all work. Python might one day want to separate "system paths" from "local paths", to give the same effect as: #include #include "local_config.h" where the current directory won't be searched for stdio.h. But other than that, it's exactly the same consideration in either Python or C. ChrisA