First time here? Check out the FAQ!
answered 2017-01-21 07:50:52 +0100
The code that sage uses is here: https://git.sagemath.org/sage.git/tree/src/sage/structure/coerce_actions.pyx#n786