#16137: lazy_list from various input data
-------------------------------------+-------------------------------------
Reporter: MatthieuDien | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.4
Component: misc | Resolution:
Keywords: LazyPowerSeries, | Merged in:
lazy_list, days57 | Reviewers:
Authors: Vincent | Work issues:
Delecroix, Matthieu Dien | Commit:
Report Upstream: N/A | 1ac24d5075f1b9060309c4ab02a2bd73a5217d6d
Branch: | Stopgaps:
public/lazy_list_from_various_input_data|
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by MatthieuDien):
Hi there,
I did some of the proposed changes :
- I removed the iterators and use 'yield' instead
- I changed is_instance by PY_TYPE_CHECK in the __getitem__ method to be
faster
- I removed the "info" method
Concerning "lazy_list_slice", I have changed my mind : I think it is not
necessary because almost all the code managing (start, stop, step) are in
the abstract class and the remaining code is dependant of the different
class.
At the end, what do you think about my explanation of why
lazy_list_explicit must have a cache ?
Matthieu
PS : Doctests will be coming ;)
--
Ticket URL: <http://trac.sagemath.org/ticket/16137#comment:61>
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.