Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46259
| References | (3 earlier) <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 | 2013-05-28 07:57 +0100 |
| Subject | Re: Python error codes and messages location |
| From | Fábio Santos <fabiosantosart@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2283.1369724237.3114.python-list@python.org> (permalink) |
[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
Re: Python error codes and messages location Fábio Santos <fabiosantosart@gmail.com> - 2013-05-28 07:57 +0100
csiph-web