Does recursion limit exceeded problem in python segmentation fault( I mean that memory limit exceeded problem)??
Segmentation fault in python
hello @govilayush
there is limit on recursion in python (this is done to avoid infinite recursion) , if u exceed that limit then it will give recursion limit exceeded problem.
but u can change the limit if u want->
import
sys
sys.setrecursionlimit(
10
*
*
6
)
So is it segmentation fault??
no its different.
segfault is caused by illegal memory access.
Is it memory limit exceeded??
no , mle is different.
recursion limit exceeded happens when we exceed the recursion limit whereas mle happens when we exceed the memory limit
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.