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: 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; '>>': 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>': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '>': 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: References: <20130527061154.GA3301@cskk.homeip.net> Date: Tue, 28 May 2013 07:57:14 +0100 Subject: Re: Python error codes and messages location From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: Vito De Tullio 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --047d7bdca9be6c37d204ddc1c68a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 28 May 2013 05:17, "Vito De Tullio" wrote: > > F=E1bio 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? --047d7bdca9be6c37d204ddc1c68a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On 28 May 2013 05:17, "Vito De Tullio" <vito.detullio@gmail.com> wrote:
>
> F=E1bio Santos wrote:
>
> >> > > Speaking of PEPs and exceptions. When do we get loc= alized exceptions?
> >> >
> >> > What do you mean by "localized exceptions"? > >> >
> >> > Please, tell me it's *NOT* a proposal to send the ex= ception 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-unexpecte= d-error-reporting into an except hook, or a try..except high up in your cal= l 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 w= ith gettext?

--047d7bdca9be6c37d204ddc1c68a--