#16107: Meta ticket: unified sequence/lazy list objects
--------------------------------------------+------------------------
       Reporter:  rws                       |        Owner:
           Type:  enhancement               |       Status:  new
       Priority:  major                     |    Milestone:  sage-6.4
      Component:  combinatorics             |   Resolution:
       Keywords:  days57,                   |    Merged in:
  LazyPowerSeries                           |    Reviewers:
        Authors:                            |  Work issues:
Report Upstream:  N/A                       |       Commit:
         Branch:                            |     Stopgaps:
   Dependencies:  #15852, #15673, #16137    |
--------------------------------------------+------------------------

Comment (by dkrenn):

 Replying to [comment:18 mantepse]:
 > Replying to [comment:16 dkrenn]:
 > > - With 1. you can only use `lazy_list_generic`, but no derived class
 like `lazy_list_iterator` directly; you have to create a
 `lazy_list_generic` which tracks the other (as its `master` attribute; is
 already implemented since used with slices)
 >
 > Could you explain?  What does it mean that you cannot use a derived
 class directly?

 {{{
 class InfiniteSequence(SageObject, lazy_list_generic)
 }}}
 But when using the factory `lazy_list`, I may get a `lazy_list_iterator`
 or similar, so AFAIK I cannot use it in `InfiniteSequence` directly. I
 need to do either
 - create `class InfiniteSequenceIterator(InfiniteSequence,
 lazy_list_iterator)` (and have to do this for all possible `lazy_list_*`
 or
 - create a `lazy_list_generic` (`InfiniteSequence`), which uses the data
 of the `lazy_list_iterator`, i.e., tracks `lazy_list_iterator`. Thus
 having always two `lazy_list_*` instances instantiated.

--
Ticket URL: <http://trac.sagemath.org/ticket/16107#comment:19>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to