Opened 11 years ago

Last modified 11 years ago

#9636 closed defect

Catch output from PARI in Sage — at Initial Version

Reported by: jdemeyer Owned by: was
Priority: major Milestone: sage-4.6
Component: interfaces Keywords:
Cc: leif, robertwb Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


The output from print() functions in libpari is directly written to stdout and is not caught by Sage. For example, the following doctest fails:

def printhello():
    sage: printhello()

It gives

File "/home/jdemeyer/paritest.sage", line 3:
    sage: printhello()
Got nothing

Luckily, libpari provides ways to redirect the output. There should a small Cython wrapper to direct the PARI output to sys.stdout.write().

I will try to implement this (using #9343 as starting point). -- Jeroen Demeyer

Change History (0)

Note: See TracTickets for help on using tickets.