Skip to content

AbstractLanguage should work with uncomparable alphabet #26935

@jdemeyer

Description

@jdemeyer

This code tries to compare various elements of the alphabet which might break in Python 3 or after #22029 is applied:

        if (alphabet.cardinality() == Infinity or
            (alphabet.cardinality() < 36 and
             all(alphabet.unrank(i) > alphabet.unrank(j)
                 for i in range(min(36, alphabet.cardinality()))
                 for j in range(i)))):

CC: @videlec

Component: combinatorics

Author: Jeroen Demeyer

Branch/Commit: d0ad378

Reviewer: Travis Scrimshaw

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions