maybe what you need is to write a _sage_input_ method for those objects, >
For multivariate polynomials see https://trac.sagemath.org/ticket/25723. I haven't posted for review yet as there seem to be some seemingly unrelated failing doc-tests. Will look into these when I have some time tonight. > I agree that it would be amazing to have every _repr_ be copy-pastable, > Gap does, or at least did, aim to do this. > but then how do you want to render simple things like QQbar(1) without > being heavy ? > QQbar is less heavy than the the current "Algebraic Field". > > By the way, there is already: > > sage: sage_input(PolynomialRing(GF(5), 'q')) > GF(5)['q'] > Thank you! I did not know about sage_input or that this input for polynomial rings was accepted. The point of my post is that in many cases the output of sage_input would be a better _repr_. Andrew -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.