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


Groups > comp.lang.python > #95898 > unrolled thread

Re: Location of an Error Message

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2015-09-02 15:23 -0600
Last post2015-09-02 15:23 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Location of an Error Message Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-02 15:23 -0600

#95898 — Re: Location of an Error Message

FromIan Kelly <ian.g.kelly@gmail.com>
Date2015-09-02 15:23 -0600
SubjectRe: Location of an Error Message
Message-ID<mailman.39.1441229073.8327.python-list@python.org>
On Wed, Sep 2, 2015 at 1:30 PM,  <stehlampen@arcor.de> wrote:
> Where are the error messages stored? E. g., in which (source code) file is the message "NameError: name 'sdfe' is not defined" stored (except for variable arguments like "sdfe")? I do know that I can throw exceptions for myself, but this question came to my mind in thinking about translating the error messages to improve Python's learning curve for newbies.

Grepping the source turns up this:

https://hg.python.org/cpython/file/tip/Python/ceval.c#l150

> Additionally, I would be grateful if you would give to me the file name (e. g. in hg.python.org) which is the Interpreter's first piece of source code which deals with the error strings.

What do you mean by "first"? I don't think the error messages are
centralized anywhere.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web