Sage allows me to create a set:
S = Set( [factor(10), factor(15)] )
However, both S.subsets()
and Subsets(S)
produce:
TypeError: <class 'sage.structure.factorization_integer.IntegerFactorization'> is not hashable
What's wrong?
1 | initial version |
Sage allows me to create a set:
S = Set( [factor(10), factor(15)] )
However, both S.subsets()
and Subsets(S)
produce:
TypeError: <class 'sage.structure.factorization_integer.IntegerFactorization'> is not hashable
What's wrong?
2 | retagged |
Sage allows me to create a set:
S = Set( [factor(10), factor(15)] )
However, both S.subsets()
and Subsets(S)
produce:
TypeError: <class 'sage.structure.factorization_integer.IntegerFactorization'> is not hashable
What's wrong?