[sage-devel] Needs review: IPython/Jupyter upgrade

2021-08-11 Thread Matthias Koeppe
I have prepared a major IPython/Jupyter upgrade, to be merged early in the 9.5 development series. https://trac.sagemath.org/ticket/31280 This will need testing by people who are familiar with the Jupyter notebook (I rarely use it). -- You received this message because you are subscribed to

Re: [sage-devel] Re: Vector spaces with immutable vectors by default

2021-08-11 Thread Kwankyu Lee
On Thursday, August 12, 2021 at 2:41:04 AM UTC+9 Matthias Koeppe wrote: > The discussion of semantic innovations for the parents seems like a > distraction to me. Note that in Python, the distinction between the mutable > and immutable version of a type is usually expressed by different types:

Re: [sage-devel] Re: Vector spaces with immutable vectors by default

2021-08-11 Thread Matthias Koeppe
On Monday, August 9, 2021 at 5:07:09 PM UTC-7 Nils Bruin wrote: > On Monday, 9 August 2021 at 15:54:03 UTC-7 Michael Jung wrote: > >> I like the idea proposed in https://trac.sagemath.org/ticket/29101 (as >> posted by Matthias). Namely, introducing the option mutable=False for >> the element

Re: [sage-devel] Vector spaces with immutable vectors by default

2021-08-11 Thread Matthias Koeppe
On Tuesday, August 10, 2021 at 11:27:35 PM UTC-7 vdelecroix wrote: > > It could even be refined to > > with Immutable(V): > # elements of V are now immutable by default > > But even then, some code elsewhere in sage might use the very same > parent (eg ZZ^2 is unique). This parent might want

Re: [sage-devel] Vector spaces with immutable vectors by default

2021-08-11 Thread Vincent Delecroix
Le 11/08/2021 à 08:09, Nils Bruin a écrit : On Tuesday, 10 August 2021 at 21:10:43 UTC-7 wst...@gmail.com wrote: Just to add to all the ideas, what about using a with statement, eg: with Immutable(): # the things Nils wishes were immutable are immutable by default here That would

Re: [sage-devel] Vector spaces with immutable vectors by default

2021-08-11 Thread Nils Bruin
On Tuesday, 10 August 2021 at 21:10:43 UTC-7 wst...@gmail.com wrote: > Just to add to all the ideas, what about using a with statement, eg: > > with Immutable(): > # the things Nils wishes were immutable are immutable by default here > That would basically move the "unless otherwise