I think I found a bug in dumps for matrices over GF(2). The problem surfaced
when I tried to save a set of such matrices, and the load failed complaining
that
TypeError('mutable matrices are unhashable',)
Simple example demonstrates the problem:
z = zero_matrix(GF(2), 3)
z.set_immutable()
print z.is_immutable()
zstr = z.dumps()
z2 = loads(zstr)
print z2.is_immutable()
which (i think) causes an exception in this code:
s = set()
s.add(z)
sstr = dumps(s)
s2 = loads(sstr)
Cheers,
Matthew
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.