Mon 2018-11-19 09:41:03 UTC+1, Simon King: > > If I recall correctly, there is a function that for *many* (not all) > interactively created objects in Sage tells how they can be constructed, > but I don't recall the name of that function.
That is sage_input, which can be used as follows: sage: R.<x> = QQ[] sage: sage_input(R) QQ['x'] sage: sage_input(x) R.<x> = QQ[] x Note that it does not always work: sage: K = R.fraction_field() sage: sage_input(K) Traceback (most recent call last) ... ValueError: Can't convert Fraction Field of Univariate Polynomial Ring in x over Rational Field to sage_input form -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.