Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(except': 0.05; 'strings.': 0.07; 'subject:Error': 0.07; 'received:151': 0.09; 'throw': 0.09; 'stored': 0.10; '(source': 0.16; 'advance!': 0.16; 'stored?': 0.16; 'variable': 0.18; 'arguments': 0.22; 'exceptions': 0.22; "python's": 0.23; 'error': 0.27; 'question': 0.27; 'curve': 0.29; 'code': 0.30; 'source': 0.33; 'grateful': 0.33; 'file': 0.34; 'but': 0.36; 'to:addr:python-list': 0.36; 'thanks': 0.37; 'to:addr:python.org': 0.40; 'where': 0.40; 'from:no real name:2**0': 0.60; 'deals': 0.67; 'subject:Location': 0.84 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-13.arcor-online.net 3n5wN63xgFz328B DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1441222230; bh=j0voIqR9SVKO+2xHyAXxatQoQt9K+4GIuv7WR8CncWU=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=YvxKKPJ4fgOZFxI9iSAoCilHZL5/Rr3KHjewoXC9ox7WhyjKG4iMxhl04U+NhTxhp r3d/gk3owOI5CRnckmywUP1wczqKU+fIA4bFvLd12bKLVo79eui21+6TfkjG0krdTK hDlD9ggMSfKSv4f3c4X7EVx42px6ko88M58B0xAg= Date: Wed, 2 Sep 2015 21:30:30 +0200 (CEST) From: stehlampen@arcor.de To: python-list@python.org Subject: Location of an Error Message MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ngMessageSubType: MessageSubType_MAIL X-WebmailclientIP: 87.169.235.167 X-Mailman-Approved-At: Wed, 02 Sep 2015 23:03:41 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 4 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441227822 news.xs4all.nl 23845 [2001:888:2000:d::a6]:54943 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:95896 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. 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. Many thanks in advance!