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


Groups > comp.lang.python > #28911

Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <d@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.042
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'sys': 0.05; 'subject:Lib': 0.09; 'cc:addr:python-list': 0.10; '*i*': 0.16; 'subject:os.py': 0.16; 'sys.modules': 0.16; 'wrote:': 0.17; 'import': 0.21; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'subject:/': 0.28; "i'm": 0.29; 'could': 0.32; 'print': 0.32; 'pm,': 0.35; 'received:192.168.0': 0.35; 'but': 0.36; "didn't": 0.36; 'subject:: ': 0.38; 'sure': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Reply- To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'subject:get': 0.81; 'confusion.': 0.84
Date Tue, 11 Sep 2012 18:57:19 -0400
From Dave Angel <d@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version 1.0
To ruck <john.ruckstuhl@gmail.com>
Subject Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py
References <a4a2e63b-d25d-4487-bff8-67d4b7c40cbc@googlegroups.com> <504e4a8d$0$29981$c3e8da3$5496439d@news.astraweb.com> <83af64e3-bc26-4217-8afa-e4f6d45b604d@googlegroups.com> <504eb3fc$0$29890$c3e8da3$5496439d@news.astraweb.com> <mailman.489.1347348083.27098.python-list@python.org> <9ef20f77-487f-4250-91af-5d7d2491da05@googlegroups.com>
In-Reply-To <9ef20f77-487f-4250-91af-5d7d2491da05@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:VwFKJKUt+kULxXyObEuQ9ee78wmF4OsGMZIwyBJMUbG eo8M3aigLdj+/Fsuv+4pt6ppRrMZIp/sH447QAWwmcnEl259I7 BlbtPQDpfjk2zC4bn5iQppfjKc4kYBtF8CMNAYQP1TTU4//DBk xk6ZwJjU1HfdKZIXjkAE3L9aKI3sAdgxJBEdZWvozJFGYbucWg afu8OIZY73927tPz5GXsTvUI+DO41UYrA83nJO9bAGKKu+5UX4 ZnXE7+Wdihq9EDHoqMul+By6KebQ1e9JCPoJXGsu8CJfMi0lgU YU6IlmWq0UylibTF853z1GM98AwTDIultPNBQjcurm95Z94OA= =
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To d@davea.name
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.527.1347404243.27098.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1347404243 news.xs4all.nl 6953 [2001:888:2000:d::a6]:53946
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28911

Show key headers only | View raw


On 09/11/2012 03:13 PM, ruck wrote:
> <snip>
>
> I'm not sure how I could have known that ntpath was already imported, since *I* didn't import it, but that was the key to my confusion.
>

import sys
print sys.modules



-- 

DaveA

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


Thread

how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py ruck <john.ruckstuhl@gmail.com> - 2012-09-10 10:25 -0700
  Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-10 20:16 +0000
    Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py ruck <john.ruckstuhl@gmail.com> - 2012-09-10 15:22 -0700
      Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-11 03:46 +0000
        Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py Tim Golden <mail@timgolden.me.uk> - 2012-09-11 08:20 +0100
          Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py ruck <john.ruckstuhl@gmail.com> - 2012-09-11 12:13 -0700
            Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py Chris Angelico <rosuav@gmail.com> - 2012-09-12 08:50 +1000
            Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py Dave Angel <d@davea.name> - 2012-09-11 18:57 -0400
          Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py ruck <john.ruckstuhl@gmail.com> - 2012-09-11 12:13 -0700
        Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-09-12 08:17 +0200
          Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py aahz@pythoncraft.com (Aahz) - 2012-11-09 16:42 -0800

csiph-web