Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'paths': 0.07; 'programmers,': 0.07; 'python': 0.08; 'path.': 0.09; 'programmers.': 0.09; 'sys,': 0.09; 'am,': 0.12; 'debugging': 0.13; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'innocuous': 0.16; 'pythons': 0.16; 'wrote:': 0.16; 'loading': 0.18; 'math': 0.21; "aren't": 0.21; 'header:In-Reply-To:1': 0.22; 'aug': 0.24; 'import': 0.28; 'message-id:@mail.gmail.com': 0.29; 'module': 0.30; 'modules,': 0.30; 'programmers': 0.31; 'installed': 0.32; 'to:addr:python-list': 0.33; '(who': 0.34; 'fri,': 0.36; 'doing': 0.36; 'but': 0.37; 'especially': 0.37; 'could': 0.38; 'steven': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'finding': 0.39; 'else': 0.39; 'to:addr:python.org': 0.39; 'might': 0.40; "it's": 0.40; 'springs': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4k04r5/UXzVA0/dN1EzVnbwLQNCMjvioQI2s4AGV58U=; b=BcF3RRKl07mQr/4lt9g9DMAolXLfx1clrPXlb6kqYRCG5aIfi+SBCfaPfLXIlo2kcD UOz+UZ3mRfoz5kHN1blP6ziOJJFIPRWlvQCj4mo5MEUVunUSHbstdTfjcTNN3Ua3ZO8t 290E5tmtYSXpQZNjyLHUtf4uwulgd2vxTZBhI= MIME-Version: 1.0 In-Reply-To: <4e3b3ab2$0$29971$c3e8da3$5496439d@news.astraweb.com> References: <4e3b3ab2$0$29971$c3e8da3$5496439d@news.astraweb.com> Date: Fri, 5 Aug 2011 03:03:39 +0100 Subject: Re: PyWhich 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.12 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1312509823 news.xs4all.nl 23904 [2001:888:2000:d::a6]:48072 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:10889 On Fri, Aug 5, 2011 at 1:34 AM, Steven D'Aprano wrote: > Especially for a tool aimed at programmers (who else would be interested in > PyWhich?) The use that first springs to my mind is debugging import paths etc. If you have multiple pythons installed and aren't sure that they're finding the right modules, you could fire up PyWhich on an innocuous module like math or sys, and see if it's loading it from the right path. People doing this might not necessarily be programmers, they might be sysadmins; but you're right that it's most likely this will be used by competent Python programmers. ChrisA