Opened 16 months ago
Last modified 6 weeks ago
#30751 new defect
Iteration over infinite abelian groups
Reported by: | alexjbest | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-9.6 |
Component: | group theory | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
Given an AbelianGroup? with infinite order generators the __iter__
method silently returns an empty iterator.
sage: for a in AbelianGroup(1,[0]): ....: print(a)
gives no output.
Either an error should be raised (like for the list method), or ideally an iterator over all elements (by lexicographic order of the powers of generators should be returned, as for
sage: for a in ZZ: ....: print(a) ....: if a^2 + a == 30: ....: break
Change History (4)
comment:1 Changed 15 months ago by
- Milestone changed from sage-9.2 to sage-9.3
comment:2 Changed 12 months ago by
- Milestone changed from sage-9.3 to sage-9.4
comment:3 Changed 6 months ago by
- Milestone changed from sage-9.4 to sage-9.5
comment:4 Changed 6 weeks ago by
- Milestone changed from sage-9.5 to sage-9.6
Note: See
TracTickets for help on using
tickets.
Setting new milestone based on a cursory review of ticket status, priority, and last modification date.