Salut Vincent, On Thu, Nov 14, 2013 at 10:43:19PM -0500, Vincent Delecroix wrote: > For me it is a bug: the behavior of cartesian_product (not > CartesianProduct) is not symmetric... > {{{ > sage: C1 = cartesian_product([FiniteEnumeratedSet('abc'),ZZ]) > The cartesian product of ({'a', 'b', 'c'}, Integer Ring) > sage: C1 > sage: C1.an_element() > ('a', 1) > }}} > but > {{{ > sage: cartesian_product([ZZ,FiniteEnumeratedSet('abc')]) > Traceback (most recent call last): > ... > AttributeError: type object > 'sage.rings.integer_ring.IntegerRing_class' has no attribute > 'CartesianProduct' > }}} > And by the way, why CartesianProduct still exist ?
Thanks for the report! > I would be happy to fix that if I know what to do. I just created #15425 for this, with pointers towards what should be done. Please add there any further bug/feature of cartesian products I may have missed. Cheers, Nicolas -- Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net> http://Nicolas.Thiery.name/ -- 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/groups/opt_out.