[Python-ideas] Retrying EAFP without DRY
Mike Meyer
mwm at mired.org
Tue Jan 24 02:06:33 CET 2012
On Tue, 24 Jan 2012 11:00:53 +1100
Steven D'Aprano <steve at pearwood.info> wrote:
> I don't. To me, "retry this thing repeatedly" is fundamentally a loop.
What's being abstracted out isn't "retry this thing repeatedly". it's
"I want to retry this thing after tweaking things if it fails." In
particular, different ways of failure might require different tweaks
before the retry, second failures would be handled differently from
first failures, etc.
<mike
More information about the Python-ideas
mailing list