#16719: replace gap.eval with libgap.eval in combinat/combinat.py
-------------------------------------+-------------------------------------
       Reporter:  rws                |        Owner:
           Type:  defect             |       Status:  new
       Priority:  major              |    Milestone:  sage-6.3
      Component:  combinatorics      |   Resolution:
       Keywords:  gap, bignum,       |    Merged in:
  expect, pexpect, libgap, stirling  |    Reviewers:
        Authors:                     |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  b69d63ff8b1ab648b71b86d840b666108de31053
  u/rws/replace_gap_eval_with_libgap_eval_in_combinat_combinat_py|     Stopgaps:
   Dependencies:  #16380, #16750     |
-------------------------------------+-------------------------------------

Comment (by rws):

 OK, now that strings get to GAP, back they get as `GapElement_List` of
 chars:
 {{{
 sage: ans = libgap.eval("UnorderedTuples(['a', 'b', 'c'],2)"); ans
 [ "aa", "ab", "ac", "bb", "bc", "cc" ]
 sage: type(ans[0])
 <type 'sage.libs.gap.element.GapElement_List'>
 sage: ans.sage()
 [["'a'", "'a'"],
  ["'a'", "'b'"],
  ["'a'", "'c'"],
  ["'b'", "'b'"],
  ["'b'", "'c'"],
  ["'c'", "'c'"]]
 }}}
 Shouldn't lists of chars be converted to strings?

--
Ticket URL: <http://trac.sagemath.org/ticket/16719#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