Have we considered the idea to simply call self.set_immutable() whenever __hash__ is invoked? I think that would solve Nils' original problem and it would mean things run smoothly for users who don't know about mutable and immutable objects. In that case, the exception for trying to modify immutable vectors should probably explain why the vector was frozen.
On Fri, 6 Aug 2021 01:25:08 +0200, Nils Bruin <nbr...@sfu.ca> wrote: > Ideas? -- 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/20210810104118.6c1c6116%40l.