Debugging (was Re: Why not allow empty code blocks?)

Steven D'Aprano steve+python at pearwood.info
Tue Aug 2 13:57:05 EDT 2016


On Wed, 3 Aug 2016 03:12 am, BartC wrote:

> That's not a fundamental language feature. Repeat-N is. And if properly
> designed, isn't an extra feature at all but a special case of a generic
> loop.

Which means it is NOT a fundamental language feature.

"Repeat N without tracking the loop variable" is just a special case
of "repeat N with tracking the loop variable", where you don't actually
care what the loop variable is.



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list