#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:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  652a6d552c10b95fd3c735094fe105e4081e47ce
  public/ticket/17979                |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by ncohen):

 > The reason for this behavior is the following: we identify elements
 which differ by trailing zeroes up to max_length. That is why the first
 and second example gives True and the last one gives False (since in this
 case we are beyond the max_length).

 Soooooooooo when you get the list `[2,2,0]` in the output of `.list()`, it
 represents "all lists beginning by `2,2,0` whose length is included
 between 3 and 4"? This information is not included in the object itself,
 it is to be understood by how it was first produced.

 This identification of list worries me a bit. The exception in `__iter__`
 was added because we consider it a bug that some element of the set may
 never be listed in `__iter__`, and this is exactly the problem we have
 again here. For a different reason, i.e. because some lists are
 identified.

 Nathann

--
Ticket URL: <http://trac.sagemath.org/ticket/17979#comment:155>
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