exception handling in complex Python programs
Delaney, Timothy (Tim)
tdelaney at avaya.com
Mon Aug 25 02:55:17 CEST 2008
> 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.
More information about the Python-list