Skip to content

SetPartition prefers comparable labels #29996

@mantepse

Description

@mantepse
sage: SetPartition([["1", 2]])
...
/home/martin/sage-develop/local/lib/python3.7/site-packages/sage/combinat/set_partition.py in __init__(self, parent, s, check)
    567         """
    568         self._latex_options = {}
--> 569         ClonableArray.__init__(self, parent, sorted(map(frozenset, s), key=min), check=check)
    570 
    571     def check(self):
...
TypeError: unsupported operand parent(s) for >: 'Integer Ring' and '<class 'str'>'

Component: combinatorics

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions