#16269: Cartesian Products of additive groups
-------------------------------------+-------------------------------------
       Reporter:  ncohen             |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.2
      Component:  categories         |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Nathann Cohen,     |    Reviewers:
  Nicolas M. ThiƩry                  |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  u/ncohen/16269     |  370abb8bfc058cb4a3017aa31b880bcdbefc762f
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vdelecroix):

 Replying to [comment:5 ncohen]:
 > Passes all tests ! The try/except in `_element_constructor_` is because
 of this discussion https://groups.google.com/d/topic/sage-
 devel/tHallML3OYI/discussion
 >
 > In the meantime, as it seems you cannot call
 `FiniteEnumeratedSet(a_list)(something)` then  it is unavoidable
 >
 > Nathann

 Your `_element_constructor_` is buggy
 {{{
 sage: S1 = FiniteEnumeratedSet(['a','b','c'])
 sage: S2 = GF(5)
 sage: C=cartesian_product([S1,S2])
 sage: C(('a',1))
 ('a', 1)
 sage: c = C(('a',1))
 sage: c[1].parent()
 Integer Ring
 }}}
 It would be better to clean the input of the cartesian product set by set.

--
Ticket URL: <http://trac.sagemath.org/ticket/16269#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" 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-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to