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


Groups > comp.lang.python > #37038

Re: PyWart: Exception error paths far too verbose

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rantingrickjohnson@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; '16,': 0.03; 'paths': 0.05; 'missed': 0.09; 'python': 0.09; 'runtime': 0.09; 'terry': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:error': 0.11; 'library': 0.15; 'folks': 0.15; 'commandline': 0.16; 'reedy': 0.16; 'side.': 0.16; 'subject:too': 0.16; 'sys.path': 0.16; 'wrote:': 0.17; 'mechanism': 0.17; 'typing': 0.17; 'file.': 0.20; 'own.': 0.22; 'wednesday,': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'script': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'is?': 0.27; 'post': 0.28; 'checks': 0.30; 'keyword': 0.30; 'switch': 0.32; 'traceback': 0.33; 'received:google.com': 0.34; 'adds': 0.35; 'consistent': 0.35; 'path': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'should': 0.36; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'your': 0.60; 'most': 0.61; 'include:': 0.61; 'leaving': 0.62; 'personal': 0.62; 'more': 0.63; 'ago.': 0.66; '2013': 0.84; 'applicable.': 0.84; 'received:209.85.216.184': 0.84; 'alone.': 0.91
X-Received by 10.49.4.231 with SMTP id n7mr117844qen.34.1358555696610; Fri, 18 Jan 2013 16:34:56 -0800 (PST)
Newsgroups comp.lang.python
Date Fri, 18 Jan 2013 16:34:56 -0800 (PST)
In-Reply-To <mailman.585.1358383925.2939.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=70.196.109.94; posting-account=h3aEwQoAAACiuqX-oR3gvCVFm8lLHoWj
References <e887a93f-ea32-442c-9673-4da892b9f37e@googlegroups.com> <mailman.565.1358330072.2939.python-list@python.org> <85ec4ecd-4d28-4c3e-980f-d7668e059eed@googlegroups.com> <mailman.585.1358383925.2939.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 70.196.109.94
MIME-Version 1.0
Subject Re: PyWart: Exception error paths far too verbose
From Rick Johnson <rantingrickjohnson@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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>
Message-ID <mailman.657.1358555706.2939.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1358555706 news.xs4all.nl 6987 [2001:888:2000:d::a6]:36159
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:37038

Show key headers only | View raw


On Wednesday, January 16, 2013 6:51:31 PM UTC-6, Terry Reedy wrote:
> I missed in your original post that you only want one consistent 
> personal library path abbreviated, leaving everything else alone. So the 
> above is not applicable. And a custom excepthook very easy.
> 
> How should the traceback mechanism -will- know what that path is?

Well, the jury is still deliberating on the specifics, however, as for myself, i would sway more to the /explicit/ side. 

A few possibilities include:

 * A configuration file. Python already checks the current
   directory for ".pth" files, which it then reads and adds
   the contained paths to sys.path --  most folks stopped
   typing commands OVER and OVER on the commandline many
   years ago. But to each his own.
 
 * A runtime command or keyword placed in a script (YUCK!)
 
 * A commandline switch (only good for members of the
   python historical society.) 

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


Thread

PyWart: Exception error paths far too verbose Rick Johnson <rantingrickjohnson@gmail.com> - 2013-01-15 21:59 -0800
  PyWart: Exception error paths far too verbose donarb <donarb@nwlink.com> - 2013-01-16 00:31 -0800
    Re: PyWart: Exception error paths far too verbose Chris Angelico <rosuav@gmail.com> - 2013-01-16 19:39 +1100
  Re: PyWart: Exception error paths far too verbose Terry Reedy <tjreedy@udel.edu> - 2013-01-16 04:53 -0500
    Re: PyWart: Exception error paths far too verbose Rick Johnson <rantingrickjohnson@gmail.com> - 2013-01-16 08:43 -0800
      Re: PyWart: Exception error paths far too verbose Terry Reedy <tjreedy@udel.edu> - 2013-01-16 19:51 -0500
        Re: PyWart: Exception error paths far too verbose Rick Johnson <rantingrickjohnson@gmail.com> - 2013-01-18 16:34 -0800
        Re: PyWart: Exception error paths far too verbose Rick Johnson <rantingrickjohnson@gmail.com> - 2013-01-18 16:34 -0800
    Re: PyWart: Exception error paths far too verbose Rick Johnson <rantingrickjohnson@gmail.com> - 2013-01-16 08:43 -0800
    Re: PyWart: Exception error paths far too verbose Ramchandra Apte <maniandram01@gmail.com> - 2013-01-19 19:15 -0800
      Re: PyWart: Exception error paths far too verbose Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-20 06:08 +0000
        Re: PyWart: Exception error paths far too verbose Terry Reedy <tjreedy@udel.edu> - 2013-01-20 11:08 -0500
  Re: PyWart: Exception error paths far too verbose Michael Torrie <torriem@gmail.com> - 2013-01-16 07:20 -0700
    Re: PyWart: Exception error paths far too verbose Rick Johnson <rantingrickjohnson@gmail.com> - 2013-01-16 08:31 -0800
    Re: PyWart: Exception error paths far too verbose Rick Johnson <rantingrickjohnson@gmail.com> - 2013-01-16 08:31 -0800
  Re: PyWart: Exception error paths far too verbose Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-16 14:45 +0000
    Re: PyWart: Exception error paths far too verbose Rick Johnson <rantingrickjohnson@gmail.com> - 2013-01-16 09:32 -0800
      Re: PyWart: Exception error paths far too verbose Chris Angelico <rosuav@gmail.com> - 2013-01-17 08:21 +1100
      Re: PyWart: Exception error paths far too verbose alex23 <wuwei23@gmail.com> - 2013-01-16 16:33 -0800

csiph-web