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 to deal with > mutable vectors. So toggling options on the parent does not look > like an option to me.
Indeed. It's also not threadsafe. Strong -1 on using context managers for this. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/1591eeac-0e54-4d01-a455-76a98aa3a524n%40googlegroups.com.