On Monday, August 22, 2016 at 8:27:28 PM UTC+2, Nils Bruin wrote: > > Iterators themselves are required to be "iterable", but in a strange way: > calling "iter" on an iterators gives you back an identical object! In > particular, if I is an iterator then calling next(I) and next(iter(I)) > should have exactly the same result (in both cases modifying the state of > I). >
Yes, though thats not what I meant. I wanted to say that set(iter(X)) == set(iter(X)). Unless X is somehow being consumed in the iteration, like open(file).readlines(), that is, an input iterator. But a BFS most certainly does not consume the tree. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.