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


Groups > comp.lang.python > #46259

Re: Python error codes and messages location

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <fabiosantosart@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:error': 0.03; 'read.': 0.03; 'url:pipermail': 0.05; 'subject:Python': 0.06; '*not*': 0.07; 'debugging': 0.07; 'skip:u 30': 0.07; 'locale': 0.09; 'stack.': 0.09; 'subject:messages': 0.09; 'cc:addr:python- list': 0.11; '&gt;&gt;': 0.16; 'errno': 0.16; 'optional': 0.16; 'somehow.': 0.16; 'exception': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'email addr:gmail.com&gt;': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '&gt;': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'message-id:@mail.gmail.com': 0.30; 'towards': 0.31; 'exceptions': 0.31; 'though.': 0.31; 'url:python': 0.33; 'maybe': 0.34; 'could': 0.34; 'except': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'really': 0.36; 'url:org': 0.36; 'requirements': 0.37; 'list.': 0.37; 'step': 0.37; 'skip:& 10': 0.38; 'url:mail': 0.40; 'even': 0.60; 'read': 0.60; 'is.': 0.60; 'logs': 0.60; 'tell': 0.60; 'hope': 0.61; 'mentioned': 0.61; 'high': 0.63; 'happen': 0.63; 'to:addr:gmail.com': 0.65; 'here': 0.66; 'language!': 0.84; 'localized': 0.84; 'python-dev': 0.84; 'subject:location': 0.84; 'url:python-dev': 0.84; 'try.': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uthNyCHc4GejC9VjA3T7Pue0o7ArUI0dI9vWf9ZwXU4=; b=V3xV8pWFpcfijt800Whsmx/tgnvk2AFh+t7nZUA+lJgmfI5LxY5RLNGgh6aYJb0Pbj Vefks+wsODCpzkoJMJJWyfGivWrJ746NRiDy0Z8iS9d+SfCr8zZbiIPO6v/onk8bA1BW kSAg/TvW57Vl3VTuBk0v+BxC8K+tVvTyme5K8zYy7sqBBP/ndI9WiZdPSFa9oRMRJ9pW NSdKRWZ1idS4usDBYYR6idONToO8cxcBpcnjtHEkpQWiEKp73MPrgdLJyj5kjiwJk5la HaiwTsW2BnIy/ADU1K065f2uRzKF3D0u8X33xXyZL4PiTeYsUmv1vRMxDLxuatLuZOFI y40A==
MIME-Version 1.0
X-Received by 10.49.120.198 with SMTP id le6mr5326123qeb.59.1369724234241; Mon, 27 May 2013 23:57:14 -0700 (PDT)
In-Reply-To <ko1asv$tgg$1@ger.gmane.org>
References <BLU176-W2F86295ACD2E1CD29375BD7960@phx.gbl> <20130527061154.GA3301@cskk.homeip.net> <knvggn$sjn$1@ger.gmane.org> <CAA=1kxTjywHHbUeRbpJS86vh5r0toAhvMghLNLh+xbsYzYu9Sg@mail.gmail.com> <ko083m$udv$1@ger.gmane.org> <CAA=1kxT7AAMJcm9hokgtisFSjMi_5v=w+zesh-i2VgaYFochKg@mail.gmail.com> <CAA=1kxTucYUr0++Y10y3npj2MSnLtQ6MvAsaS3SkqF4U3Bbnpw@mail.gmail.com> <ko1asv$tgg$1@ger.gmane.org>
Date Tue, 28 May 2013 07:57:14 +0100
Subject Re: Python error codes and messages location
From Fábio Santos <fabiosantosart@gmail.com>
To Vito De Tullio <vito.detullio@gmail.com>
Content-Type multipart/alternative; boundary=047d7bdca9be6c37d204ddc1c68a
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>
Newsgroups comp.lang.python
Message-ID <mailman.2283.1369724237.3114.python-list@python.org> (permalink)
Lines 102
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369724237 news.xs4all.nl 15994 [2001:888:2000:d::a6]:49402
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:46259

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 28 May 2013 05:17, "Vito De Tullio" <vito.detullio@gmail.com> wrote:
>
> Fábio Santos wrote:
>
> >> > > Speaking of PEPs and exceptions. When do we get localized
exceptions?
> >> >
> >> > What do you mean by "localized exceptions"?
> >> >
> >> > Please, tell me it's *NOT* a proposal to send the exception message
in
> >> > the
> >> > locale language!
> >> It is. I think I read it mentioned in python-dev or this list.
> >
> > Here is what I read.
> >
> > http://mail.python.org/pipermail/python-dev/2013-April/125364.html
> >
> > It wasn't only about exceptions after all. And it seems like something
> > that will only happen far into the future.
>
> I really hope really far... have you never tried to google a localized
error
> message? :\
>
> --
> By ZeD
>

Never. I don't even try.

I still think this is a good idea. Not for debugging though.

For UI (and error logs if your requirements include writing them in the
user language), it could simplify all the
user-facing-unexpected-error-reporting into an except hook, or a
try..except high up in your call stack.

It would be a pretty big step towards RAD. But it had to be made optional
somehow.

Maybe using errno and existing exception messages together with gettext?

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


Thread

Re: Python error codes and messages location Fábio Santos <fabiosantosart@gmail.com> - 2013-05-28 07:57 +0100

csiph-web