Returning from a multiple stacked call at once

Dieter Maurer dieter at handshake.de
Sat Dec 12 12:20:17 EST 2020


ast wrote at 2020-12-12 07:39 +0100:
>In case a function recursively calls itself many times,
>is there a way to return a data immediately without
>unstacking all functions ?

Python does not have "long jump"s (out of many functions, many loop
incarnations).
In some cases, you can use exceptions to emulate "long jump"s.


More information about the Python-list mailing list