diff --git a/src/sage/libs/pari/convert_sage.pyx b/src/sage/libs/pari/convert_sage.pyx index e26238d7c38..f590036c005 100644 --- a/src/sage/libs/pari/convert_sage.pyx +++ b/src/sage/libs/pari/convert_sage.pyx @@ -56,6 +56,18 @@ cpdef gen_to_sage(Gen z, locals=None): """ Convert a PARI gen to a Sage/Python object. + .. NOTE:: + + It is more convenient to use `.sage() `_ + method on gen object:: + + sage: z = pari('12'); z + 12 + sage: a = z.sage(); a + 12 + sage: a.parent() + Integer Ring + INPUT: - ``z`` -- PARI ``gen``