id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
28274 EnumeratedFamily should use integers as keys gh-mwageringel "This ticket solves the following problems involing `EnumeratedFamily`:
- The keys of an enumerated family should be integers. Currently, the elements of the family itself are returned.
{{{
sage: f = Family(Permutations(4))
sage: f.keys()
Standard permutations of 4
sage: list(f.keys()) == list(f) # should not be True here
True
}}}
Because of this, looking up elements by key as in `f[next(iter(f.keys()))]` raises a type error. For example, this is used in `DisjointUnionEnumeratedSets`.
- Finite enumerated families should be in the category of `FiniteEnumeratedSets()`, while currently it is only in `EnumeratedSets()`:
{{{
sage: Family(Permutations(4)) in FiniteEnumeratedSets() # should be True
False
}}}
- Infinite enumerated families are currently indexed by `NonNegativeIntegers()` from `sage.categories.example.infinite_enumerated_sets`. This ticket replaces the usage of these example numbers by those in `sage.sets.non_negative_integers`. This also includes one instance in `baxter_permutations`.
" defect closed minor sage-8.9 combinatorics fixed tscrim nthiery Markus Wageringel Travis Scrimshaw N/A 4ba13d872900eba7e2f556afd77bfc0f94852521 4ba13d872900eba7e2f556afd77bfc0f94852521