python - Is it possible to tell if a function is recursive? -


Function loop versus that there is no shortage of reading and parsing a file to see. Answer? Suppose it can only be one or the other, that does not increase the function, and that it is guaranteed to end the work.

< Pre> dig test (x): return exam (x) exam .__ code__ test in co_name_________________________________________________________________=================================================== = True but name can be changed

It checks whether the function is in the global names mentioned by the function.

I say " "Because some kind of ways may be around it, Lambda has no name, so they will not match the global names for which they were bound. The function can be renamed, for a separate code for the internal code function Can reference the name.The function can call a second function, which is the actual recursive function and on and on ...

Actually, there is no way to make sure Land that function is recursive.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -