Re:Tail recursion in Python
by icebraining on Saturday March 17, 2018 @08:20AM
(#16606642)
Even the language itself does this: if a generator that is being processed by a for loop returns (rather than yield), the language will raise a StopIteration exception, which the for loop with catch and use as a signal that it should exit.
[ Parent
| on HN ]
There are no comments on this comment yet.