This is more problematic:

    sage: v=vector([1,1,1])
    sage: v.set_immutable()
    sage: hash(2*v)
    ...
    TypeError: mutable vectors are unhashable

Nathann

On 23 October 2015 at 14:04, Nathann Cohen <nathann.co...@gmail.com> wrote:
> Hello everybody,
>
> When calling .row() on an immutable matrix, one gets mutable vectors.
> I can easily avoid it for the code I am writing, but do you think we
> should do something about it?
>
>     sage: m = matrix.ones(10)
>     sage: m.set_immutable()
>     sage: hash(m.row(0))
>     ...
>     TypeError: mutable vectors are unhashable
>
> Nathann

-- 
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 http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to