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


Groups > comp.lang.python > #10889

Re: PyWhich

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 <rosuav@gmail.com>
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 <j1e45l$jtg$1@speranza.aioe.org> <4e3b3ab2$0$29971$c3e8da3$5496439d@news.astraweb.com>
Date Fri, 5 Aug 2011 03:03:39 +0100
Subject Re: PyWhich
From Chris Angelico <rosuav@gmail.com>
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 <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.1914.1312509823.1164.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, Aug 5, 2011 at 1:34 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> 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

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


Thread

PyWhich Billy Mays <81282ed9a88799d21e77957df2d84bd6514d9af6@myhashismyemail.com> - 2011-08-04 08:43 -0400
  Re: PyWhich Chris Rebert <clp2@rebertia.com> - 2011-08-04 10:22 -0700
  Re: PyWhich Tim Chase <python.list@tim.thechases.com> - 2011-08-04 13:24 -0500
  Re: PyWhich Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-08-05 10:34 +1000
    Re: PyWhich Tim Chase <python.list@tim.thechases.com> - 2011-08-04 20:04 -0500
      Re: PyWhich Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-08-05 23:51 +1000
        Re: PyWhich Tim Golden <mail@timgolden.me.uk> - 2011-08-05 15:03 +0100
        Re: PyWhich John Gordon <gordon@panix.com> - 2011-08-05 14:33 +0000
    Re: PyWhich Chris Angelico <rosuav@gmail.com> - 2011-08-05 03:03 +0100
      Re: PyWhich Billy Mays <81282ed9a88799d21e77957df2d84bd6514d9af6@myhashismyemail.com> - 2011-08-05 10:43 -0400
        Re: PyWhich Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-08-06 00:56 +1000
  Re: PyWhich Web Dreamer <webdreamer@nospam.fr> - 2011-08-05 16:34 +0200

csiph-web