Re: [sage-devel] Re: Names of objects in sage

2018-07-03 Thread William Stein
Back in 2005 I implemented a "rename" method on all parents as one way to address this problem. Basically: sage: R. = PolynomialRing(GF(7)['y,z']) sage: R Univariate Polynomial Ring in x over Multivariate Polynomial Ring in y, z over Finite Field of size 7 sage: R.rename('R') R sage:

Re: [sage-devel] Re: Names of objects in sage

2018-07-03 Thread Thierry
Hi, another argument in favor of the "explicit" representation instead of the "short" one is that it can pass arguments, which impact the nature of the object. For exemple, currently univariate polynomials are rendered as ZZ['x'], whether the polynomial ring is sparse or dense, but those are

[sage-devel] Re: Names of objects in sage

2018-07-01 Thread Nils Bruin
On Saturday, June 30, 2018 at 2:11:21 PM UTC-7, Andrew wrote: > > For some reason in sage when printing we often use long and laborious > names like: > > sage: LaurentPolynomialRing(ZZ,'q') > Univariate Laurent Polynomial Ring in q over Integer Ring > sage: LaurentPolynomialRing(GF(5),'q') >

[sage-devel] Re: Names of objects in sage

2018-07-01 Thread Eric Gourgoulhon
Note that in the Jupyter notebook, having set %display latex you can have both outputs: LaurentPolynomialRing(ZZ,'q') returns *Z*[q^{\pm 1}] while print(LaurentPolynomialRing(ZZ,'q')) returns Univariate Laurent Polynomial Ring in q over Integer Ring By the way, I would advocate that %display