#15375: Extended Affine Weyl Groups SD40
-------------------------------------+-------------------------------------
Reporter: bump | Owner: bump
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.8
Component: combinatorics | Resolution:
Keywords: days54, coxeter, | Merged in:
days64, days65 | Reviewers: Dan Bump, Anne
Authors: Daniel Bump, Dan | Schilling
Orr, Anne Schilling, Mark | Work issues:
Shimozono, Nicolas Thiery. | Commit:
Report Upstream: N/A | f36f4aad0d2d1b38ed0499b19572623c3302deec
Branch: | Stopgaps:
public/combinat/extended_affine_weyl_groups-15375|
Dependencies: #10963, #14102 |
-------------------------------------+-------------------------------------
Comment (by nthiery):
Good point. To avoid having both `__iter__` and `__list__` you can just
do:
{{{
def __iter__(self):
return iter(self.group_generators())
}}}
Note the use of `iter` rather than `for ... yield` (should be faster).
Also, default list method will already raise an error if the set is in
`XXX.Infinite()`.
Thanks!
--
Ticket URL: <http://trac.sagemath.org/ticket/15375#comment:82>
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.