#9662: gp(string) always returns a value, even when it should not
---------------------------+-----------------------------------------------
Reporter: | Owner: was
jdemeyer | Status: closed
Type: defect | Milestone: sage-duplicate/invalid/wontfix
Priority: major | Resolution: invalid
Component: | Merged in:
interfaces | Reviewers:
Keywords: pari | Work issues:
Authors: | Dependencies:
Report Upstream: N/A |
Branch: |
Stopgaps: |
---------------------------+-----------------------------------------------
Changes (by mhansen):
* status: new => closed
* resolution: => invalid
* milestone: sage-5.11 => sage-duplicate/invalid/wontfix
Comment:
I agree that this is invalid. Doing {{{gp('kill(x)')}}} means to create
an object "kill(x)" in gp, assign it to a variable, and return a object
pointing to that variable.
{{{
sage: type(gp('kill(x)'))
<class 'sage.interfaces.gp.GpElement'>
}}}
This is how it works for all the interfaces. If you just want to evaluate
a command, then you can do
{{{
sage: gp.eval('kill(x)')
''
}}}
which appropriately returns an empty string.
--
Ticket URL: <http://trac.sagemath.org/ticket/9662#comment:3>
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/groups/opt_out.