#19895: extend lazy lists: various improvments and generalizations, new sublists
-------------------------------------+-------------------------------------
Reporter: dkrenn | Owner:
Type: enhancement | Status: new
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 | 422f2334a00dc0b40d3c9db27b034ab830350d94
Dependencies: #16137 | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by dkrenn):
* commit: => 422f2334a00dc0b40d3c9db27b034ab830350d94
* dependencies: => #16137
Old description:
> This ticket extends `sage.misc.lazy_list` by the following:
>
> - Sublists `dropwhile` and `takewhile` (similar behavior as those in the
> `itertools`; we share the same cache).
>
> - Simplify code in `__repr__` and allow custumization.
>
> - Creating sublists/slices of derived instances (e.g. if there is a class
> `Z` inheriting from `lazy_list_generic`, then now a slice of an instance
> of `Z` can now be an instance of `Z` as well.
>
> - Improve documentation
>
> - Various smaller code improvements and simplifications.
New description:
This ticket extends `sage.misc.lazy_list` by the following:
- Sublists `dropwhile` and `takewhile` (similar behavior as those in the
`itertools`; we share the same cache).
- Simplify code in `__repr__` and allow custumization.
- Creating sublists/slices of derived instances (e.g. if there is a class
`Z` inheriting from `lazy_list_generic`, then now a slice of an instance
of `Z` can now be an instance of `Z` as well.
- Improve documentation
- Various smaller code improvements and simplifications.
Note: This is also meant as a preparation for (infinite) homogenous
sequences #19896.
--
Comment:
Last 10 new commits:
||[http://git.sagemath.org/sage.git/commit/?id=30223ec6fe1abf0d5e7e47be0dd558599faec0e4
30223ec]||{{{Merge branch 't/16137/16137' into
u/dakrenn/extend_lazy_lists}}}||
||[http://git.sagemath.org/sage.git/commit/?id=7eb5af9ad3a026fa6018f4081789b3ef254de0ac
7eb5af9]||{{{changes due to move of module}}}||
||[http://git.sagemath.org/sage.git/commit/?id=a2cf2dcc581e79ff67b908f11b5253247a8ed87f
a2cf2dc]||{{{method properties}}}||
||[http://git.sagemath.org/sage.git/commit/?id=e9603d3fd458308b5ed12f3d25a906c3e65d6971
e9603d3]||{{{method change_class}}}||
||[http://git.sagemath.org/sage.git/commit/?id=9c2f77b4ee9040748c37757a264085474ceabd6b
9c2f77b]||{{{use and test change_class}}}||
||[http://git.sagemath.org/sage.git/commit/?id=f897b1262584733f84c762e02debdda819ac959f
f897b12]||{{{update pxd description of parameters}}}||
||[http://git.sagemath.org/sage.git/commit/?id=8c1261d8e9b5eb07f88125fe949ae4ce45b157ed
8c1261d]||{{{prepare fitting for dropwhile and takewhile}}}||
||[http://git.sagemath.org/sage.git/commit/?id=089d9d76bfb2f797381c0cb5e0d61ff28bf94dba
089d9d7]||{{{rewrite dropwhile, takewhile}}}||
||[http://git.sagemath.org/sage.git/commit/?id=ff1c04e0e2452c90e71e157d77110404b3031cef
ff1c04e]||{{{add methods to directly call dropwhile, takewhile}}}||
||[http://git.sagemath.org/sage.git/commit/?id=422f2334a00dc0b40d3c9db27b034ab830350d94
422f233]||{{{100% coverage, write docstrings and extend existing}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/19895#comment:2>
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.