#7939: shorten doctests in sage/rings/multi_polynomial_ideal.py
-------------------------------+--------------------------------------------
Reporter: rlm | Owner: tbd
Type: defect | Status: needs_info
Priority: major | Milestone: sage-4.3.2
Component: interfaces | Keywords:
Author: Martin Albrecht | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Changes (by AlexGhitza):
* status: needs_review => needs_info
Comment:
Passes tests for me.
I tried to play with this a little bit, which lead to some questions:
1. Is there any way to get tab-completion to work in this situation:
{{{
sage: groebner = sage.libs.singular.ff.gro<TAB> ? cannot open
`__members__.lib`
? cannot open `__methods__.lib`
? cannot open `trait_names.lib`
? cannot open `_getAttributeNames.lib`
}}}
(If yes, maybe this should be a new ticket.)
2. After I got over my laziness, I typed in the whole thing:
{{{
sage: groebner = sage.libs.singular.ff.groebner
sage: P.<x, y> = QQ[]
sage: I = P.ideal(x^2-y, x+y)
sage: groebner(I)
? error occurred in standard.lib::groebner line 850: `parameter def
i_par; parameter list #; `
---------------------------------------------------------------------------
SystemError Traceback (most recent call
last)
/home/ghitza/<ipython console> in <module>()
SystemError: NULL result without error in PyObject_Call
sage: groebner(I, ring=P)
skipping text from `parameter` error at token `;`
---------------------------------------------------------------------------
SystemError Traceback (most recent call
last)
/home/ghitza/<ipython console> in <module>()
SystemError: NULL result without error in PyObject_Call
sage: from sage.libs.singular.function import SingularLibraryFunction
sage: f = SingularLibraryFunction("groebner")
sage: f(I)
---------------------------------------------------------------------------
SystemError Traceback (most recent call
last)
/home/ghitza/<ipython console> in <module>()
SystemError: NULL result without error in PyObject_Call
}}}
Is this a bug? Or am I doing something silly? If it's the latter, it
would be good if there were an easy way for me to get help from the
documentation. I tried groebner? and groebner?? (which give very
different results) but I couldn't get an answer quickly.
So I feel a little clueless at the moment. I'm hoping your answers will
help me out, and I'll look at this again.
(I still think it's terrific stuff, though!)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7939#comment:11>
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.