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


Groups > comp.lang.python > #46208

RE: Python error codes and messages location

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <carlosnepomuceno@outlook.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:error': 0.03; 'subject:Python': 0.06; 'guys!': 0.09; 'pep': 0.09; 'subject:messages': 0.09; 'ahead!': 0.16; 'called.': 0.16; 'graceful': 0.16; 'exception': 0.16; 'code,': 0.22; 'to:name :python-list@python.org': 0.22; 'certainly': 0.24; 'errors.': 0.24; 'received:65.55.116': 0.24; 'handling': 0.26; 'header:In- Reply-To:1': 0.27; "i'm": 0.30; 'common': 0.35; 'prepare': 0.35; 'but': 0.35; 'really': 0.36; 'thanks': 0.36; 'responsible': 0.36; 'possible': 0.36; 'step': 0.37; 'handle': 0.38; 'to:addr:python- list': 0.38; 'planning': 0.38; 'to:addr:python.org': 0.39; 'most': 0.60; 'shutdown': 0.84; 'subject:location': 0.84
X-TMN [FTxDUGH8wVWEr/yzkVUzEgvjAZqc8Qww]
X-Originating-Email [carlosnepomuceno@outlook.com]
From Carlos Nepomuceno <carlosnepomuceno@outlook.com>
To "python-list@python.org" <python-list@python.org>
Subject RE: Python error codes and messages location
Date Mon, 27 May 2013 19:54:59 +0300
Importance Normal
In-Reply-To <CAA=1kxR=05RbcbR8s1rzfdQBGXGRRx2j=O8NpcEFB-_GiZBJPg@mail.gmail.com>
References <CAA=1kxR=05RbcbR8s1rzfdQBGXGRRx2j=O8NpcEFB-_GiZBJPg@mail.gmail.com>
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-OriginalArrivalTime 27 May 2013 16:55:00.0381 (UTC) FILETIME=[ECF02CD0:01CE5AFA]
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>
Newsgroups comp.lang.python
Message-ID <mailman.2255.1369673709.3114.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369673709 news.xs4all.nl 15978 [2001:888:2000:d::a6]:52718
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:46208

Show key headers only | View raw


Thanks so much guys!

I'm not planning to prepare for every possible situation, but I certainly am responsible to handle most common errors. So it's really important to know what a function/method returns when called.

Exception handling may take lots of code, but I'm used to it. It's much better to have a graceful shutdown than a data/time loss. ;)

I think PEP 3151 is a step ahead! That's almost exactly what I was looking for. Why did it take so long to have that implemented? 		 	   		  

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


Thread

Re: Python error codes and messages location Fábio Santos <fabiosantosart@gmail.com> - 2013-05-27 13:46 +0100
  Re: Python error codes and messages location Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-27 13:11 +0000
    Re: Python error codes and messages location Fábio Santos <fabiosantosart@gmail.com> - 2013-05-27 14:26 +0100
    RE: Python error codes and messages location Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-27 19:54 +0300
    Re: Python error codes and messages location Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-05-27 18:14 +0100
    Re: Python error codes and messages location Terry Jan Reedy <tjreedy@udel.edu> - 2013-05-27 13:52 -0400

csiph-web