Skip to content

Commit

Permalink
Update src/sage/algebras/commutative_dga.py
Browse files Browse the repository at this point in the history
Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
  • Loading branch information
miguelmarco and tscrim authored May 26, 2023
1 parent 704579f commit b3d322e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sage/algebras/commutative_dga.py
Original file line number Diff line number Diff line change
Expand Up @@ -3896,10 +3896,11 @@ class CohomologyClass(SageObject, CachedRepresentation):
sage: CohomologyClass(x^2+2*y*z, A)
[2*y*z + x^2]
In order for the cache to not confuse objects with the same representation,
we can pass the parent of the representative as a parameter.
TESTS::
TESTS:
In order for the cache to not confuse objects with the same representation,
we can pass the parent of the representative as a parameter::
sage: A.<e1,e2,e3,e4,e5,e6> = GradedCommutativeAlgebra(QQ)
sage: B1 = A.cdg_algebra({e5:e1*e2,e6:e3*e4})
Expand Down

0 comments on commit b3d322e

Please sign in to comment.