Re: [sage-devel] Surprising behaviour of Set

2017-06-25 Thread 'Martin R' via sage-devel
This is now https://trac.sagemath.org/ticket/23324 Am Sonntag, 25. Juni 2017 19:47:36 UTC+2 schrieb vdelecroix: > > On 25/06/2017 19:10, 'Martin R' via sage-devel wrote: > > I just noticed that Set([[], []]).cardinality() yields 2. In earlier > > versions, a TypeError: unhashable type: 'list' w

Re: [sage-devel] Surprising behaviour of Set

2017-06-25 Thread Vincent Delecroix
On 25/06/2017 19:10, 'Martin R' via sage-devel wrote: I just noticed that Set([[], []]).cardinality() yields 2. In earlier versions, a TypeError: unhashable type: 'list' was raised. I think the behaviour was modified in https://trac.sagemath.org/ticket/22597. Is this intended? It seems to me

[sage-devel] Surprising behaviour of Set

2017-06-25 Thread Dima Pasechnik
a set theorist would be very happy :) -- 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] Surprising behaviour of Set

2017-06-25 Thread 'Martin R' via sage-devel
I just noticed that Set([[], []]).cardinality() yields 2. In earlier versions, a TypeError: unhashable type: 'list' was raised. I think the behaviour was modified in https://trac.sagemath.org/ticket/22597. Is this intended? It seems to me that it would be safer if cardinality would raise an