SIGN IN SIGN UP

* Bulletproof the method for detecting mutations during iteration.

The previous approach was too easily fooled (a rotate() sufficed).

* Use it->counter to determine when iteration is complete.  The
  previous approach was too complex.

* Strengthen an assertion and add a comment here or there.
R
Raymond Hettinger committed
d1b3d88bf33e6c854807a5eca644a6c1c12ec5f4
Parent: 77e8bf1