#17979: Reimplementation of IntegerListsLex
-------------------------------------+-------------------------------------
       Reporter:  aschilling         |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  blocker            |    Milestone:  sage-6.6
      Component:  combinatorics      |   Resolution:
       Keywords:  days64             |    Merged in:
        Authors:  Bryan Gillespie,   |    Reviewers:
  Anne Schilling, Nicolas M. Thiery  |  Work issues:  support n in an
Report Upstream:  N/A                |  iterable
         Branch:                     |       Commit:
  public/ticket/17979                |  6153cf8d39dc23cb41a3d0c2ea66ba5dc3abd2c0
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 There is still this bug:
 {{{
 sage: it = iter(IntegerListsLex(4))
 sage: for _ in range(20): print next(it)
 [4]
 [3, 1]
 [3, 0, 1]
 [3, 0, 0, 1]
 [3, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
 [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
 }}}
 It seems that `[1,2,3]` will never appear in the output!

--
Ticket URL: <http://trac.sagemath.org/ticket/17979#comment:39>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to