Message 184631 - Python tracker
I'm trying to solve this issue (it seemed easy), but the bug is worse than expected. Python crashed even without iteration at all.
it = 'abracadabra'
for _ in range(1000000):
it = filter(bool, it)
del it
And fixing a recursive deallocator is more harder than iterator.
What can we do if a deallocator raises RuntimeError due to maximum recursion depth exceeded.