Opened 10 years ago
Last modified 6 years ago
#12955 needs_work enhancement
Move __len__ and __getitem__ from Parent to FiniteEnumeratedSets
Reported by: | nthiery | Owned by: | nthiery |
---|---|---|---|
Priority: | major | Milestone: | sage-6.9 |
Component: | categories | Keywords: | |
Cc: | sage-combinat, ncohen | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | public/12955 (Commits, GitHub, GitLab) | Commit: | b6aeeb300a5c658a97a981c0a353806ae37bf446 |
Dependencies: | #12957 | Stopgaps: |
Description (last modified by )
Title says it all. The point is that with the current implementation prevents categories to override those methods with something more interesting. Alas, the attached patch is not yet ready for consumption since there still remains finite (enumerated) sets in Sage that are not in FiniteSets of FiniteEnumeratedSets (see #12913 and #12957)
In the mean time, #12956 provides a workaround for __getitem__
.
Attachments (1)
Change History (12)
Changed 10 years ago by
comment:1 Changed 10 years ago by
- Dependencies set to #12957
- Description modified (diff)
comment:2 Changed 9 years ago by
- Milestone changed from sage-5.11 to sage-5.12
comment:3 Changed 8 years ago by
- Milestone changed from sage-6.1 to sage-6.2
comment:4 Changed 8 years ago by
- Milestone changed from sage-6.2 to sage-6.3
comment:5 Changed 8 years ago by
- Milestone changed from sage-6.3 to sage-6.4
comment:6 Changed 7 years ago by
Is there any concrete plan for this 3 year old ticket?
comment:7 Changed 7 years ago by
- Cc ncohen added
comment:8 Changed 7 years ago by
- Description modified (diff)
comment:9 Changed 7 years ago by
- Branch set to public/12955
- Commit set to b6aeeb300a5c658a97a981c0a353806ae37bf446
- Keywords days38 removed
- Milestone changed from sage-6.4 to sage-6.9
- Status changed from new to needs_review
comment:11 Changed 6 years ago by
Please check #20902, related to this ticket.
Note: See
TracTickets for help on using
tickets.
Preliminary patch