Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'ideally': 0.04; 'apps,': 0.07; 'skip:/ 10': 0.07; 'occasionally': 0.09; 'runtime': 0.09; 'bug': 0.10; 'django': 0.10; 'programmer': 0.11; 'subject:error': 0.11; 'cases': 0.15; 'essential': 0.15; 'file,': 0.15; '10:59': 0.16; 'folder,': 0.16; 'folder.': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'partly': 0.16; 'paths.': 0.16; 'sees': 0.16; 'subject:too': 0.16; 'developers,': 0.16; 'users.': 0.16; 'wrote:': 0.17; 'code,': 0.18; 'developer': 0.19; 'ideal': 0.20; 'skip:" 30': 0.20; 'finally,': 0.22; 'trace': 0.22; 'apps': 0.23; 'errors': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'common': 0.26; 'case,': 0.29; 'call.': 0.30; 'code': 0.31; 'point': 0.31; 'gets': 0.32; 'server.': 0.32; 'johnson': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'likely': 0.33; 'typically': 0.33; 'path': 0.35; 'pm,': 0.35; 'sometimes': 0.35; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'message-id:@gmail.com': 0.36; 'modules': 0.36; 'should': 0.36; 'bad': 0.37; 'itself': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'sure': 0.38; 'gives': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'end': 0.40; 'most': 0.61; 'home': 0.66; 'lives': 0.71; 'recover': 0.84; 'am.': 0.91; 'rick': 0.91; 'skip:/ 30': 0.91 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Wed, 16 Jan 2013 07:20:12 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121115 Thunderbird/10.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: PyWart: Exception error paths far too verbose References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358346026 news.xs4all.nl 6963 [2001:888:2000:d::a6]:42135 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36894 On 01/15/2013 10:59 PM, Rick Johnson wrote: > Why do i need to see "C:\users\user\documents\python\lib" EVERY time? You're thinking about things from a very windows-centric point of view. There are many cases where as a developer I need to see the full paths. My modules are not always going to be in a common subfolder. Django apps, for example, live in an arbitrary folder, in my case, /var/www/apps on my web server. Sometimes they live in my home projects folder. Django itself lives partly in /usr/lib/python2.7/site-packages and partly in /usr/share/django. Granted most of my errors are going to happen in my own code, which is in /var/www/apps/blah. But occasionally I might uncover a django bug (less likely of course). Seeing the full path is essential for me. As well, runtime errors get logged as the system is serving, and they could come from any of my apps, depending on how bad a programmer I am. Finally, in an ideal world, all runtime errors should be trapped by the program. The end user should never see them. Sure in my django apps things go south from time to time. But typically the trace gets logged to a file, and the end user sees a 503 error, and gives me a call. Ideally of course, the code should recover gracefully and let the user do most of what he wants. Traces are for developers, not users.