I have noticed the overloading of + for Set union, which I find very convenient.
Correspondingly, I would like to propose the overloading of * for Set intersection.
It seems to me that it suffices to modify
local/lib/python3.9/site-packages/sage/sets/set.py
by adding in
class Set_add_sub_operators:
the lines
def _mul_(self, X):
"""
Return the intersection of ``self`` and ``X``.
"""
return self.intersection(X)
I have tested this and it works as expected.
Should I open a ticket? I shall have to learn how to deal with commits.
I am aware of the overloading of * in real_set.py, but I think they are compatible.
Thanks,
Guillermo