#9661: pari(string) always returns a value, even when it should not
--------------------------+-------------------------------------------------
Reporter: jdemeyer | Owner: jdemeyer
Type: defect | Status: new
Priority: major | Milestone: sage-4.6
Component: interfaces | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------+-------------------------------------------------
Changes (by jdemeyer):
* owner: was => jdemeyer
Old description:
> When executing a PARI command from Sage, a value of 0 is returned when
> None would be expected. For example, in a gp shell (started with sage
> -gp for example):
>
> {{{
> gp> kill(x) /* No output */
> }}}
>
> But in Sage:
> {{{
> sage: pari('kill(x)')
> 0
> }}}
>
> It should be possible to fix this by checking for {{{gnil}}} as return
> value.
New description:
When executing a PARI command from Sage, a value of 0 is returned when
None would be expected. For example, in a gp shell (say, started with
sage -gp):
{{{
gp> kill(x) /* No output */
}}}
But in Sage:
{{{
sage: pari('kill(x)')
0
}}}
It should be possible to fix this by checking for {{{gnil}}} (PARI's
concept of None) as return value.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9661#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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.