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

<p dir="ltr">It would be a pretty big step towards RAD. But it had to be made optional somehow.</p>
<p dir="ltr">Maybe using errno and existing exception messages together with gettext?</p>