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


Groups > comp.lang.python > #98187

Re: Modern recommended exception handling practices?

From Paul Rubin <no.email@nospam.invalid>
Newsgroups comp.lang.python
Subject Re: Modern recommended exception handling practices?
Date 2015-11-03 11:59 -0800
Organization A noiseless patient Spider
Message-ID <87h9l2yhur.fsf@nightsong.com> (permalink)
References <52739457-5f7a-48ea-8835-9fc8934174f9@googlegroups.com> <56385887$0$1598$c3e8da3$5496439d@news.astraweb.com> <mailman.7.1446534982.8789.python-list@python.org>

Show all headers | View raw


Chris Angelico <rosuav@gmail.com> 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Modern recommended exception handling practices? vasudevram <vasudevram@gmail.com> - 2015-10-29 10:43 -0700
  Re: Modern recommended exception handling practices? Steven D'Aprano <steve@pearwood.info> - 2015-11-03 17:47 +1100
    Re: Modern recommended exception handling practices? Chris Angelico <rosuav@gmail.com> - 2015-11-03 18:16 +1100
      Re: Modern recommended exception handling practices? Steven D'Aprano <steve@pearwood.info> - 2015-11-03 18:22 +1100
        Re: Modern recommended exception handling practices? Chris Angelico <rosuav@gmail.com> - 2015-11-03 18:52 +1100
      Re: Modern recommended exception handling practices? Paul Rubin <no.email@nospam.invalid> - 2015-11-03 11:59 -0800

csiph-web