#19895: extend lazy lists: various improvements and generalizations, new 
sublists
-------------------------------------+-------------------------------------
       Reporter:  dkrenn             |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-7.0
      Component:  misc               |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Daniel Krenn       |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/dkrenn/extend_lazy_lists         |  3b63c4792714b2e57dda38b6d9a69e2cf663ba94
   Dependencies:  #16137             |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by dkrenn):

 * status:  new => needs_review


Comment:

 Ticket is ready for reviewing.

 At the top there is
 {{{
 #empty_lazy_list = lazy_list_generic(initial_values=[],
 #                                    start=0, stop=0, step=1)  # ... does
 not work
 }}}
 which is commented since it does not work. The following workaround is
 used:
 {{{
 empty_lazy_list = lazy_list_generic.__new__(lazy_list_generic)
 empty_lazy_list.start = 0
 empty_lazy_list.stop = 0
 empty_lazy_list.step = 1
 empty_lazy_list.cache = []
 ...
 }}}
 It simply sets all the attributes manually. Commenting in the "direct
 command", one gets
 {{{
 Traceback (most recent call last):
 ...
   File "/local/dakrenn/sage/7.0.beta3/local/lib/python2.7/site-
 packages/sage/combinat/words/morphism.py", line 144, in <module>
     from sage.misc.lazy_list import lazy_list
 ImportError: cannot import name lazy_list
 }}}
 Any ideas? (But I am happy with any solution; deleting the commented-out
 lines as well)

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