Skip to content

Make Compositions into a collections.abc.Sequence #34527

@trevorkarn

Description

@trevorkarn

Currently Sage does not understand Compositions as a collections.abc.Sequence:

sage: c = Composition([3,4,2,4])
sage: from collections.abc import Sequence
sage: isinstance(c, Sequence)
False

This ticket registers Composition as a Sequence.

CC: @tscrim @trevorkarn

Component: combinatorics

Keywords: gsoc2022 compositions sequence

Author: Trevor K. Karn

Branch/Commit: 78f3a92

Reviewer: Travis Scrimshaw, Matthias Köppe

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions