]> granicus.if.org Git - python/commit
* Bulletproof the method for detecting mutations during iteration.
authorRaymond Hettinger <python@rcn.com>
Sat, 2 Oct 2004 00:43:13 +0000 (00:43 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 2 Oct 2004 00:43:13 +0000 (00:43 +0000)
commitd1b3d88bf33e6c854807a5eca644a6c1c12ec5f4
tree9f5e6a208afeb6a5e5dabbc07397fd0da0694029
parent77e8bf1ca48f15780c7724910236d8ebb1da3c33
* 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.
Modules/collectionsmodule.c