[Python-ideas] i18n and Python tracebacks

Antoine Pitrou solipsis at pitrou.net
Sat May 15 17:04:29 CEST 2010


On Sat, 15 May 2010 11:02:35 -0300
Andre Roberge <andre.roberge at gmail.com>
wrote:
> >>> 1/0
> Suivi d'erreur (appel le plus récent en dernier) :
>   Fichier "<stdin>", à la ligne 1, dans <module>
> ZeroDivisionError: division entière ou modulo par zéro

I'm not sure it's a good idea. The fact that these messages are always
in English makes it possible:
- to share them with other developers in order to get help
- to parse them in order to assert certain kind of errors

These messages are primarily meant for developers, not users.

(as a sidenote, I regularly get annoyed by gcc's "translated" error
messages -- especially how crappy the French translation often is.
It's always better to get a good English error message than a horrible
French one)

Antoine.





More information about the Python-ideas mailing list