Skip to content

Move __len__ and __getitem__ from Parent to FiniteEnumeratedSets #12955

@nthiery

Description

@nthiery

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__.

Depends on #12957

CC: @sagetrac-sage-combinat @nathanncohen

Component: categories

Branch/Commit: public/12955 @ b6aeeb3

Issue created by migration from https://trac.sagemath.org/ticket/12955

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions