#14894: Fix PARI error handling (needed for future upgrade to PARI 2.6)
--------------------------------------+------------------------------
Reporter: vbraun | Owner: jdemeyer
Type: defect | Status: needs_work
Priority: major | Milestone: sage-5.12
Component: packages: standard | Resolution:
Keywords: pari error signal | Merged in:
Authors: Peter Bruin | Reviewers: Jeroen Demeyer
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: #12142, #14873 | Stopgaps:
--------------------------------------+------------------------------
Comment (by pbruin):
Replying to [comment:44 jdemeyer]:
> Replying to [comment:43 pbruin]:
> > Couldn't we prevent printing the error message by using a custom
`pariErr` like we already do for `pariOut`? Besides not having to patch
PARI to add another callback, this has the additional advantage that the
error text can be stored for possible inspection.
> That was my original idea but there are some complications, for example
the printing of an extra newline in `err_init()` and the use of ANSI
escape sequences for colours.
I see. But wouldn't it be a more satisfactory solution to have PARI do
those things only if the output is connected to a terminal (using
`isatty`)? This would still require a patch, of course.
--
Ticket URL: <http://trac.sagemath.org/ticket/14894#comment:45>
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.