Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

subsets of Set of unhashable items

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?

subsets of Set of unhashable items

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?