Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define our own PariOUT #11230

Closed
jdemeyer opened this issue Apr 21, 2011 · 10 comments
Closed

Define our own PariOUT #11230

jdemeyer opened this issue Apr 21, 2011 · 10 comments

Comments

@jdemeyer
Copy link

Instead of changing defaultOut in sage/libs/pari/gen.pyx, we should instead define our own PariOUT structure and use that.

Component: interfaces

Keywords: pari

Author: Jeroen Demeyer

Reviewer: Robert Bradshaw, John Cremona

Merged: sage-4.7.1.alpha0

Issue created by migration from https://trac.sagemath.org/ticket/11230

@jdemeyer
Copy link
Author

Attachment: 11230_pariout.patch.gz

@robertwb
Copy link
Contributor

comment:2

LGTM, pending adding the trac number to the ticket description.

Why in the world did we define __x to do ctypedef __x pariout_t?

@jdemeyer
Copy link
Author

comment:3

Replying to @robertwb:

LGTM, pending adding the trac number to the ticket description.

This is no longer necessary (see http://groups.google.com/group/sage-devel/browse_thread/thread/f5a9c012f6299a9e/a3c2af4a7700bca3)

Why in the world did we define __x to do ctypedef __x pariout_t?

I didn't write that code, but probably to work around some limitation/bug in an earlier version of Cython?

@jdemeyer
Copy link
Author

Reviewer: Robert Bradshaw

@JohnCremona
Copy link
Member

comment:4

I know this has a positive review from the omnipotent testbot, but when I apply this to a freshly-rolled 4.7.alpha5 and do a full test I get two failures in sage/misc/sagedoc.py:

File "/home/jec/sage-4.7.alpha5.pari/devel/sage-main/sage/misc/sagedoc.py", line 874:
    sage: len(search_doc('tree', interact=False).splitlines()) > 2500  # long time
Expected:
    True
Got:
    False
**********************************************************************
File "/home/jec/sage-4.7.alpha5.pari/devel/sage-main/sage/misc/sagedoc.py", line 489:
    sage: 'abvar/homology' in _search_src_or_doc('doc', 'homology', 'variety', interact=False)
Expected:
    True
Got:
    False

I built Sage with "make build" rather than "make", in case that is relevant. Meanwhile I switched the tag to "needs info" but will continue with this applied and go on to #11130.

@jdemeyer
Copy link
Author

comment:5

Replying to @JohnCremona:

I built Sage with "make build" rather than "make", in case that is relevant.

Probably it is, because the doctest failures you mention are related to the documentation. So I would guess that make doc-html would solve those problems.

@JohnCremona
Copy link
Member

comment:6

Replying to @jdemeyer:

Replying to @JohnCremona:

I built Sage with "make build" rather than "make", in case that is relevant.

Probably it is, because the doctest failures you mention are related to the documentation. So I would guess that make doc-html would solve those problems.

I guessed so, so am about to try again after sage -docbuild all html has finished...

@JohnCremona
Copy link
Member

comment:7

Replying to @JohnCremona:

Replying to @jdemeyer:

Replying to @JohnCremona:

I built Sage with "make build" rather than "make", in case that is relevant.

Probably it is, because the doctest failures you mention are related to the documentation. So I would guess that make doc-html would solve those problems.

I guessed so, so am about to try again after sage -docbuild all html has finished...

As expected, the problem went away. I suppose it was silly to base the full test on devel/sage and not devel/sage/sage given that I had not built the docs.

@JohnCremona
Copy link
Member

Changed reviewer from Robert Bradshaw to Robert Bradshaw, John Cremona

@jdemeyer
Copy link
Author

Merged: sage-4.7.1.alpha0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants