diff --git a/src/sage/schemes/jacobians/abstract_jacobian.py b/src/sage/schemes/jacobians/abstract_jacobian.py index a1b27708080..7f792df2835 100644 --- a/src/sage/schemes/jacobians/abstract_jacobian.py +++ b/src/sage/schemes/jacobians/abstract_jacobian.py @@ -28,6 +28,30 @@ _Fields = Fields() +def is_Jacobian(J): + """ + Return True if `J` is of type Jacobian_generic. + + EXAMPLES:: + + sage: from sage.schemes.jacobians.abstract_jacobian import Jacobian, is_Jacobian + sage: P2. = ProjectiveSpace(QQ, 2) + sage: C = Curve(x^3 + y^3 + z^3) + sage: J = Jacobian(C) + sage: is_Jacobian(J) + True + + :: + + sage: E = EllipticCurve('37a1') + sage: is_Jacobian(E) + False + """ + from sage.misc.superseded import deprecation + deprecation(35467, "Use Jacobian_generic directly") + return isinstance(J, Jacobian_generic) + + def Jacobian(C): """ EXAMPLES::