-
-
Notifications
You must be signed in to change notification settings - Fork 660
Closed
Description
I guess it is a bug:
sage: k = GF(5)
sage: H = Hom(k,k)
sage: H2 = Hom(k,k)
sage: H is H2
False
I don't know what is the correct way to fix this problem.
More precisely, in sage.categories.homset (l. 223-227), one can read:
try:
# Apparently X._Hom_ is supposed to be cached
return X._Hom_(Y, category)
except (AttributeError, TypeError):
pass
However, in this particular case, k.Hom is apparently not cached. IMHO, caching should be the job of sage.categories.homset.Hom is all cases, but I might be wrong.
Apply
Depends on #14159
CC: @xcaruso @simon-king-jena @nbruin
Component: categories
Keywords: homset unique parent
Author: Xavier Caruso, Frédéric Chapoton
Reviewer: Travis Scrimshaw
Merged: sage-5.10.beta0
Issue created by migration from https://trac.sagemath.org/ticket/13184