I’m running into a problem with a Python script that I’m currently working on, where after a couple of iterations, it exceeds the recursion limit somehow!?
By iterations, I mean that the component refreshes/recomputes, much like a Timer, and stores essential information, as a class object in the sticky dictionary.
Inside the class, I have a nested list, but instead of sublists, it contains dictionaries, and the error occurs here, when I try to check if a certain dictionary is included in this list.
This means that it’s likely that .Net cannot just get to such a deep recursion limit on its own.
When I encountered this, it was always a bug. I never heard of a real, properly programmed case where this was happening. Of course, still, we can come up with some function that self-recurses enough to cause stack overflow.
By looking at the code sample, it looks like this will work fine:
OK, you guys probably won’t believe this, but after changing zip in the script and restarting my computer for a system update, the error has mysteriously disappeared for now. I’ve re-run the same script a couple of times and it still works. Weird right? I don’t get it!