On Thu, Jun 25, 2020 at 12:49 PM Ars-Magna <kgn...@gmail.com> wrote: > > Is the following a bug ? > > sage: Set([[(Integer(0), Integer(0)), (Integer(1), Integer(1))],[(Integer(0), > Integer(0)), (Integer(1), Integer(1))]]).cardinality() > > 2
hard to say. Note that sage: Set([[(0,0), (1,1)],[(0,0), (1,1)]]).cardinality() 2 sage: Set([((0,0), (1,1)),((0,0), (1,1))]).cardinality() 1 and even sage: Set([[0],[0]]).cardinality() 2 - the problem is that lists are not hashable, and considered unequal. The problem is that in general testing objects for equality is far from obvious, might be algorithmically unsolvable, etc. > > -- > 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/4c7163cb-84c5-4bf0-9ef3-585e709883b7o%40googlegroups.com. -- 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/CAAWYfq3R8D_jyQEJCZeWtEmZGQJmTR8xu5%3DKbnUeRUhttdB%3Dmg%40mail.gmail.com.