RE: exception handling in complex Python programs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Delaney, Timothy (Tim)

    RE: exception handling in complex Python programs

    Lie wrote:
    Ah... now I understand what the Zen is talking about when it said:
    "Now is better then never, although never is often better than *right*
    now." If you don't have all the necessary resources to fix an
    exception right now, don't try to fix it, instead let it propagate,
    and allow it to be handled in a level where there is enough
    information how to fix it.
    Well, I believe the original intent was more along the lines of adding
    features, etc to Python, but it's apropos here as well.
    I think we should change except: into expect:, it would confuse less,
    would it? It signifies that the program expects so and so kinds of
    exceptional situations.
    Whilst the connotations are good, and I think create the right mindset,
    it ain't gonna happen.

    Cheers,

    Tim Delaney
Working...