Looks like a bug/oversight. Can you open a trac ticket?
On Thursday 30 May 2013, Matthew Weippert wrote:
> 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,
> MatthewCheers, Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6532AFB4 _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF _www: http://martinralbrecht.wordpress.com/ _jab: [email protected]
signature.asc
Description: This is a digitally signed message part.
