[Python-ideas] Retrying EAFP without DRY
Mike Meyer
mwm at mired.org
Tue Jan 24 18:19:50 CET 2012
On Tue, 24 Jan 2012 17:00:28 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
> On Tue, Jan 24, 2012 at 3:47 PM, Mike Meyer <mwm at mired.org> wrote:
> > The argument isn't that we need a new syntax for a small set of
> > loops, it's that the only ways to implement retrying after an
> > exception leave a code smell.
> Uh, saying "retrying is fundamentally a looping operation" is not a
> code smell.
No, the code smell is a loop that just gets run through once. I mean,
I can write any if statement as a while loop, but it's probably a bad
idea and a code smell.
<mike
More information about the Python-ideas
mailing list