#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:                     |  39d1993d70a837967109be12de261f4f504901cc
  public/ticket/17979                |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by nthiery):

 Replying to [comment:56 jdemeyer]:
 > This limitation should be mentioned somewhere in the docs:
 > {{{
 > sage: IntegerListsLex(length=2, max_n=Infinity, ceiling=[Infinity, 0],
 floor=[0,1]).list()
 > Traceback (most recent call last):
 > ...
 > ValueError: infinite upper bound for values of m
 > }}}
 > (this is another example which "just works" with #17920).

 I added this to the documentation, specifying that this example could be
 enumerated in lexicographically increasing order but not in
 lexicographically decreasing order as does `IntegerListsLex`.

 Two questions:

 - Does anyone have a good suggestion for a better error message?

 - Should the error message be created upon creating the parent, or
   when starting the iteration? The advantage of doing it only upon
   iteration is that we can still use the parent for checking
   containment, constructing the polytope, ...

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