# HG changeset patch
# User Francois Bissey <francois.bissey@canterbury.ac.nz>
# Date 1323603049 46800
# Node ID 27b676bc8b4d15d20aa3792b7dc698e0031b2e06
# Parent df5620969fbddef0cf191407d046c2ed522d6a49
trac 9958: it.next() successive values are in random order, this is really apparent with python 2.7.
diff git a/sage/combinat/words/nfactor_enumerable_word.py b/sage/combinat/words/nfactor_enumerable_word.py
a

b


13  13  
14  14  EXAMPLES: 
15  15  
16   Enumeration of factors:: 
 16  Enumeration of factors, the successive values returned by it.next() 
 17  can appear in a different order depending on hardware. Therefore we 
 18  mark the three first results of the test random. The important test 
 19  is that the iteration stops properly on the fourth call:: 
17  20  
18  21  sage: w = Word([4,5,6])^7 
19  22  sage: it = w.factor_iterator(4) 
20   sage: it.next() 
 23  sage: it.next() # random 
21  24  word: 6456 
22   sage: it.next() 
 25  sage: it.next() # random 
23  26  word: 5645 
24   sage: it.next() 
 27  sage: it.next() # random 
25  28  word: 4564 
26  29  sage: it.next() 
27  30  Traceback (most recent call last): 