Hi!

I work on fixing a memory leak at #11521. My patch uses weak
references for the cache of homsets (in sage.categories.homset).

Problem:

There are two doc tests that are repeated in three different files,
and they test that you can actually do
   sage: z=(2/3); Hom(z,8/1)
But one can't have a weak reference to a rational number or an
integer. Hence, these tests result in an error with my patch.

However, I think that the ability to consider rational numbers as
OBJECTS of a category (rather than elements of an object) and to
construct Hom(2/3, 8/1) is not much of a use. And in fact it does not
seem to be used anywhere in Sage, except in these few doc tests.

Why were these tests introduced?

Would you agree with me that these tests should simply be removed?

Best regards,
Simon

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to