Message194228
| Author |
terry.reedy |
| Recipients |
benjamin.peterson, exarkun, ezio.melotti, fabioz, gvanrossum, michael.foord, rhettinger, terry.reedy, tomwardill |
| Date |
2013年08月03日.01:56:19 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1375494980.19.0.654214173098.issue11798@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If the iterator for 'self' were de-structive, if it removed (popped) the test from whatever structure holds it before yielding it, the messiness of enumerate and the new ._removeTestAtIndex method would not be needed and 'for test in self' would work as desired. If considered necessary, new method .pop_iter, used in 'for test in self.pop_iter', would make it obvious that the iteration empties the collection. |
|