Re: [sage-devel] Help needed with UniqueRepresentation (of SymmetricFunctions)

2024-02-05 Thread Gareth Ma
The following should show the problem: sage: from sage.structure.unique_representation import UniqueRepresentation : : class A(UniqueRepresentation): : def __init__(self, v=1): : self.v = str(v) : : A() == A() : A() is A() : A() == A(1) True True False

[sage-devel] Help needed with UniqueRepresentation (of SymmetricFunctions)

2024-02-05 Thread 'Martin R' via sage-devel
At https://github.com/sagemath/sage/pull/37220 I am trying to provide a construction functor for symmetric functions. I am hitting the following bug, which I hope is easy to fix if one knows the right magic: sage: P. = QQ[] sage: S = SymmetricFunctions(P) sage: S.jack().P() == S.jack(t=t).P()