#16750: libgap fails converting string GapElements to Sage
--------------------------------------+------------------------
Reporter: rws | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.3
Component: interfaces | Resolution:
Keywords: conversion, string | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------------+------------------------
Comment (by vbraun):
The single quote is a single character constant in GAP. There is no
single-character type in Python...
{{{
sage: libgap.eval("'ca'")
---------------------------------------------------------------------------
ValueError Traceback (most recent call
last)
<ipython-input-27-41441932e6b8> in <module>()
----> 1 libgap.eval("'ca'")
/home/vbraun/Code/sage/local/lib/python2.7/site-
packages/sage/libs/gap/libgap.so in sage.libs.gap.libgap.Gap.eval
(build/cythonized/sage/libs/gap/libgap.c:3790)()
/home/vbraun/Code/sage/local/lib/python2.7/site-
packages/sage/libs/gap/util.so in sage.libs.gap.util.gap_eval
(build/cythonized/sage/libs/gap/util.c:4487)()
ValueError: libGAP: Syntax error: missing single quote in character
constant
'ca';
^
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16750#comment:2>
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.