Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Rui Maciel Newsgroups: comp.lang.python Subject: Newbie: use of built-in exceptions Date: Sun, 01 Sep 2013 12:17:26 +0100 Organization: A noiseless patient Spider Lines: 5 Message-ID: Reply-To: rui.maciel@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Sun, 1 Sep 2013 11:17:27 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2c6b298e869016deda41c4c8dadee138"; logging-data="1492"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/B4fFPzpGVQIjyovI4FJzIDp0VDN3PsU0=" User-Agent: KNode/4.8.5 Cancel-Lock: sha1:i1Z0iOhp5sewPKAnWMz6ZaQZ/RY= Xref: csiph.com comp.lang.python:53411 Are there any guidelines on the use (and abuse) of Python's built-in exceptions, telling where it's ok to raise them and where it's preferable to define custom exceptions instead? Thanks in advance, Rui Maciel