[Python-ideas] Retrying EAFP without DRY

Stephen J. Turnbull stephen at xemacs.org
Tue Jan 24 04:18:05 CET 2012


Jim Jewett writes:

 > So it doesn't seem like a loop because you hope to do it only once?

With s/hope/expect/, that hits the nail on the head.

I don't think syntax can express that cleanly, but I can't help
thinking it's of good thing if somebody like Mike tries to find a way.
He might succeed!



More information about the Python-ideas mailing list