Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.python Subject: Re: Modern recommended exception handling practices? Date: Tue, 03 Nov 2015 11:59:24 -0800 Organization: A noiseless patient Spider Lines: 7 Message-ID: <87h9l2yhur.fsf@nightsong.com> References: <52739457-5f7a-48ea-8835-9fc8934174f9@googlegroups.com> <56385887$0$1598$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="1a9f5856d25720e42c135b990c70bebb"; logging-data="14790"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18j3/3x1pNnuieAblmKi0Bd" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:HocrtD3/WONYqiwenAAPZhfAwhE= sha1:ijgiJVP601j3akf2JheamxxBdl0= Xref: csiph.com comp.lang.python:98187 Chris Angelico writes: > Aside from string exceptions and the "except Type, e:" syntax, I would > agree with you. Actually, I can't think of any "obsolete > exception-handling practices" in any language. I'd say that context managers are a big recent improvement in Python over dealing with a lot of exceptions explicitly.