Open
Description
Steps To Reproduce
We have
sage: hash( Permutations(5).random_element() )
-6659793982185131405
sage: hash( Partitions(5).random_element() )
3863035679738500442
sage: hash( Tuples(range(5),2).random_element() )
7204814214171964562
and so on, except for
sage: hash( Combinations(5,2).random_element() )
...
TypeError: unhashable type: 'list'
Expected Behavior
Combinations should be hashable. Perhaps, they should simply produce elements of type tuple
not list
.
Actual Behavior
They produce lists that are unhashable.
Additional Information
No response
Environment
- OS: Ubuntu 24.04.1 LTS
- Sage Version: 10.6.beta1
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