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!newsfeed6.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; 'sys': 0.05; 'sep': 0.09; 'subject:Lib': 0.09; '*i*': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'peek': 0.16; 'subject:os.py': 0.16; 'sys.modules': 0.16; 'wed,': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'import': 0.21; 'received:209.85.214.174': 0.21; '3.2': 0.22; 'tried': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'in.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'subject:/': 0.28; "i'm": 0.29; 'could': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; '12,': 0.36; "didn't": 0.36; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'subject:get': 0.81; 'confusion.': 0.84 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:to :content-type; bh=XREyJ8v/LvwLxApLdZREBxU2UNKDV0+7NrX7Mnb6plc=; b=PY5xcVn8txcMb1gNeMy2AO5jCX+SRj91KaccKtMv5BvoWW3Y9bb7fnP9zd9Od+H7SE 5viqGP3/oB41T/uW/cUm7XTQctwAx4g9bKdvRbIAnUI++RjHqc1MUdfrfZWNCnvwY/4g wyUqlFFpTBIQOcZTwCjpU13cB1n1w0QCX5SK+ugVjOIRahCWE+blxaSX1x72RKC63n9T YNsq8mlZZJezKJTI1Pt1Pqf6jYl1KJGjhTdi+VfyTWB1JzY5DfwkwCLYKa9+9m6LPcb5 Oz8FxjwCwCU/Dr8SKCkqE18REq+Zicxl18JVdloAE6orVSjUuEGW2A/NU9djzg5doS+S MErA== MIME-Version: 1.0 In-Reply-To: <9ef20f77-487f-4250-91af-5d7d2491da05@googlegroups.com> References: <504e4a8d$0$29981$c3e8da3$5496439d@news.astraweb.com> <83af64e3-bc26-4217-8afa-e4f6d45b604d@googlegroups.com> <504eb3fc$0$29890$c3e8da3$5496439d@news.astraweb.com> <9ef20f77-487f-4250-91af-5d7d2491da05@googlegroups.com> Date: Wed, 12 Sep 2012 08:50:12 +1000 Subject: Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 1347403815 news.xs4all.nl 6875 [2001:888:2000:d::a6]:45216 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28909 On Wed, Sep 12, 2012 at 5:13 AM, ruck wrote: > 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. One way to find out is to peek at the cache. >>> import sys >>> sys.modules There are quite a few of them in the 3.2 interactive that I just tried this in. ChrisA