#19895: extend lazy lists: various improvements and generalizations, new
sublists
-------------------------------------+-------------------------------------
Reporter: dkrenn | Owner:
Type: enhancement | Status: needs_info
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:
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
Hi Daniel,
Sorry for the long delay.
Simple for me means: few attributes and few methods. No room for
customization. Changing the appearance of a lazy list is certainly useful
but adding +5 attributes to '''all''' lazy lists is a big waste. However,
I fully agree that a better representation code would be useful. What
about writing a customizable method:
{{{
def str(self, prefix, start, max_nb_elements, separator, ...):
}}}
That would overload the class but '''not''' the objects. Hence a memory
footprint close to zero.
I am against the multiplication of classes since this can go forever. I
would be happier if each class would actually have concrete usecase (i.e.
at least used in 2 other classes). Perhaps you have some in mind for
`dropwhile`?
Best,
Vincent
--
Ticket URL: <http://trac.sagemath.org/ticket/19895#comment:10>
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.