Returning from a multiple stacked call at once

Oscar jornws200602 at xs4all.nl
Sat Dec 12 11:10:46 EST 2020


In article <5fd465b5$0$8956$426a74cc at news.free.fr>, ast  <ast at invalid> wrote:
>Hello
>
>In case a function recursively calls itself many times,
>is there a way to return a data immediately without
>unstacking all functions ?

If you are referring to your "are you ok?" problem, please read up on
recursion and when and how to use it. You were doing it completely
wrong. You only call a function from *whitin itself* if you need
recursion. It's quite hard to explain in a few words, so just google it.
I'm sure there are many great explanations around.
-- 
[J|O|R] <- .signature.gz


More information about the Python-list mailing list