◐ Shell
clean mode source ↗

Message 190639 - Python tracker

Here's one solution to the deletion-during-iteration problem.  It makes the iterators track the key rather than the node, at the expense of a sliver of speed on __iter__() and keys().