In article <[email protected]>,
 Chris Angelico <[email protected]> wrote:

> The one thing you can rely on (and therefore must comply with, when
> you design an iterable) is that iteration will hit every element
> exactly once. 

Does it actually say that somewhere?  For example:

for i in bag.pick_randomly_with_replacement(n=5):
   print i

shouldn't do that.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to