#17979: Reimplementation of IntegerListsLex
-------------------------------------+-------------------------------------
       Reporter:  aschilling         |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  blocker            |    Milestone:  sage-6.6
      Component:  combinatorics      |   Resolution:
       Keywords:  days64             |    Merged in:
        Authors:  Bryan Gillespie,   |    Reviewers:  Nathann Cohen, Jeroen
  Anne Schilling, Nicolas M. Thiery  |  Demeyer, Travis Scrimshaw
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/ticket/17979                |  ffa4d20e61f5d8d71e5a2cd48ae39a345793f45b
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by nthiery):

 Replying to [comment:317 jdemeyer]:
 > The code in `IntegerListsLex.__init__` could be simplified.

 Done. Thanks for the for #17920' model.

 I ended up not using `integer_or_infinity`: here I prefer to not
 accept both `-oo` and `+oo` when only one makes sense, and having two
 functions (or one with parameters) seemed like overkill. This is
 explicit and simple enough:

 {{{
     self._max_length = ZZ(max_length) if max_length != Infinity else
 max_length
 }}}

 Cheers,
                           Nicolas

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