Skip to content

Permutations() and other combinatorial classes error out on mutable elements #38814

Open
@maxale

Description

Steps To Reproduce

Calls like Permutations([[1],[2],[3]]), Subsets([[1],[2],[3]]), SetPartitions([[1],[2],[3]]) etc. all result in the error:

TypeError: unhashable type: 'list'

Expected Behavior

Should work.

Actual Behavior

TypeError

Additional Information

No response

Environment

  • OS: Ubuntu 24.04.1 LTS
  • Sage Version: 10.5.beta6

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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