Sage 7.6.beta2 released

185 views
Skip to first unread message

Volker Braun

unread,
Feb 1, 2017, 4:39:03 PM2/1/17
to sage-release
As always, you can get the latest beta version from the "develop" git branch. Alternatively, the self-contained source tarball is at http://www.sagemath.org/download-latest.html

375d4ee Updated SageMath version to 7.6.beta2
eaaf043 Trac #22188: Document Sage's documentation style, in particular use ".. FOO::" rather than ".. foo::"
715b38b Trac #22262: Three.js: Fix axes label offsets for significant aspect ratio adjustments
7744632 Trac #22270: py3 compatible imports in sage/matrix
a3034da Trac #22226: Make minimal Three.js a standard package
4baf6f1 Trac #22122: Remove deprecated code in geometry
5e68f39 Trac #22248: typos in the word isomorphism
16478ab Trac #22246: pep8 cleanup of graph_latex
42944a7 Trac #22132: Make base ring appear in self representation of PointConfiguration
f28c7e3 Trac #22053: Doctest continuation marker / several files
47689bd Trac #22212: Improve method PowerSeries._pari_()
fadc413 Trac #21117: specialzation for polynomials, schemes, and morphisms
9821ed4 Trac #22266: py3: get rid of cmp() in element_wrapper
0889e0c Trac #22263: Regular matroid isomorphism problem
c7b3060 Trac #22259: py3 do not call cmp() in code of real_mpfr
80ac45e Trac #22242: py3 : use richcmp for ring morphisms
9ad2168 Trac #22240: Use relative imports in sage_setup/autogen/pari
fbe5bcc Trac #22198: Make cypari2 Python2 / Python3 compatible
e3a2999 Trac #19625: Lift faster digraph from alcove path to category of highest weight crystals
5ea3fad Trac #22260: mpir fails to build with sed 4.3+
44047c5 Trac #22251: Fix lie_polynomial
3c2ef0a Trac #17527: Echelon form of a matrix is sometimes pickled incorrectly
393f6f5 Trac #22216: Constructing a power series from PARI ignores the precision
78587c8 Trac #22210: Remove obsolete special case in PARI gen.eval()
360b42c Trac #22207: Fix tutorial_free_modules.py
42b082c Trac #22205: add more links to PARI documentation
a0e40d6 Trac #22172: faster coercion from Python ints to ℚ(√a)
3a78b8a Trac #22140: remove "import sage" from sage.rings.asymptotic.*
c1247cb Trac #22137: LatticePoset: Add certificate for is_join_semidistributive
a8df4ce Trac #21533: add a method to reach lmfdb webpage of elliptic curves over Q
82bf6ce Trac #20729: doctest runner breaks loading modules from packages that use relative imports
3d9cc08 Trac #22255: py3 : use richcmp for padic ring morphisms
18b1b83 Trac #22254: Speedup computation of bridges
3e81b55 Trac #22245: py3: no cmp() in noncommutative ideals
f0d434a Trac #22238: LatticePoset: Is subdirectly irreducible?
e56a4ca Trac #22199: cleanup of two files inside stats/distribution
d6ae2a3 Trac #22092: Remove custom method Group.__contains__()
21679a8 Trac #21594: Fomin's growth diagrams and Schensted-like algorithms
3ade098 Trac #18920: upgrade Maxima  to version >= 5.39
ac31f23 Updated SageMath version to 7.6.beta1

Emmanuel Charpentier

unread,
Feb 2, 2017, 7:30:04 AM2/2/17
to sage-release
On Debioan testing (Core17 + 16 GB RAM), passes ptestlong with one failure (sage -t --long --warn-long 109.4 src/sage/homology/simplicial_complex.py ) which is transient (passes with no error when run standalone).

HTH,

--
Emmanuel Charpentier

Dima Pasechnik

unread,
Feb 2, 2017, 8:30:55 AM2/2/17
to sage-release


On Thursday, February 2, 2017 at 12:30:04 PM UTC, Emmanuel Charpentier wrote:
On Debioan testing (Core17 + 16 GB RAM), passes ptestlong with one failure (sage -t --long --warn-long 109.4 src/sage/homology/simplicial_complex.py ) which is transient (passes with no error when run standalone).

I also see a failure there of a similar kind, on a gentoo system, something to do with I/O.
Is it also the case for you?
Could you post the error you see there?

Volker Braun

unread,
Feb 2, 2017, 8:45:43 AM2/2/17
to sage-release

Dima Pasechnik

unread,
Feb 2, 2017, 11:14:31 AM2/2/17
to sage-release
right.

Jean-Philippe Labbé

unread,
Feb 3, 2017, 4:50:15 AM2/3/17
to sage-release
Hi,

Just compiled the latest version. First time that I get this error compiling Sage:

The following package(s) may have failed to build (not necessarily during this run of 'make all'):

* package: python
 log file: sage/logs/pkgs/python.log 

Here is the content of the log:

Attempting to download package python 
>>> Checking online list of optional packages. 
>>> Checking online list of experimental packages. 
>>> Checking online list of huge packages. 
Error: could not find a package matching python 
Try 'sage --package list' to see the available packages 
Did you mean: cython, ipython, python2, python3, pathpy? 
Attempting to download package python 
>>> Checking online list of optional packages. 
>>> Checking online list of experimental packages. 
>>> Checking online list of huge packages. 
Error: could not find a package matching python 
Try 'sage --package list' to see the available packages 
Did you mean: cython, ipython, python2, python3, pathpy?

Would a make dist-clean do the thing?

Eric Gourgoulhon

unread,
Feb 3, 2017, 5:29:16 AM2/3/17
to sage-release
On Ubuntu 16.04 x86_64 Xeon E5-2623 + 16 GB RAM, from a fresh git clone + pull develop, parallel (-j8) build OK and make ptestlong resulted in all tests passed.

However, I've noted some regression, most probably due to the upgrade to Maxima 5.39 introduced in #18920: the hyperbolic plane worksheet fails at Out[35] with "The kernel appears to have died". A minimal code to reproduce it is

sage: H = Manifold(2, 'H')
sage: X.<r,ph> = H.chart(r'r:(0,+oo) ph:(0,2*pi):\varphi')  # standard polar coord. in the plane
sage: Y.<R,ph> = H.chart(r'R:(0,1) ph:(0,2*pi):\varphi')   # coord. for the Poincaré disk model
sage: X_to_Y = X.transition_map(Y, [r/(1+sqrt(1+r^2)), ph])
sage: X_to_Y.display()
R = r/(sqrt(r^2 + 1) + 1)
ph = ph
sage: X_to_Y.set_inverse(2*R/(1-R^2), ph, verbose=True)

;;;
;;; Detected access to protected memory, also kwown as 'bus or segmentation fault'.
;;; Jumping to the outermost toplevel prompt
;;;

Erreur de segmentation (core dumped)

Eric.

Jeroen Demeyer

unread,
Feb 3, 2017, 6:16:16 AM2/3/17
to sage-r...@googlegroups.com
On 2017-02-03 10:50, Jean-Philippe Labbé wrote:
> Hi,
>
> Just compiled the latest version. First time that I get this error
> compiling Sage:
>
> The following package(s) may have failed to build (not necessarily
> during this run of 'make all'):

What are the lines *above* this part of the log that you showed? I think
that you cut away some interesting part and that the python.log is not
the real problem.

Daniel Krenn

unread,
Feb 3, 2017, 12:28:25 PM2/3/17
to sage-r...@googlegroups.com
On 2017-02-01 22:39, Volker Braun wrote:
> As always, you can get the latest beta version from the "develop" git
> branch.

Fresh clone on Linux Mint 17.3, make ptestlong reports

sage -t --long src/sage/interfaces/expect.py # 1 doctest failed
sage -t --long src/sage/repl/interpreter.py # 3 doctests failed
sage -t --long src/sage/repl/interface_magic.py # 3 doctests failed
sage -t --long src/sage/repl/ipython_tests.py # 4 doctests failed

Full doctesting output of the failing tests below.




dakrenn@pc72-math /local/dakrenn/sage/7.6.beta2 $ ./sage -t --long
src/sage/interfaces/expect.py
too many failed tests, not using stored timings
Running doctests with ID 2017-02-03-18-24-24-8b914491.
Git branch: t/21855/public/21855
Using --optional=mpir,python2,sage
Doctesting 1 file.
sage -t --long src/sage/interfaces/expect.py
**********************************************************************
File "src/sage/interfaces/expect.py", line 1114, in
sage.interfaces.expect.Expect._expect_expr
Failed example:
print(sage0.eval("dummy=gp.eval('0'); alarm(1);
gp._expect_expr('1')")) # long time
Expected:
Control-C pressed. Interrupting PARI/GP interpreter. Please wait a
few seconds...
...
AlarmInterrupt:
Got:
Control-C pressed. Interrupting PARI/GP interpreter. Please wait a
few seconds...

<CSI-1;31m>---------------------------------------------------------------------------<CSI-0m>
<CSI-1;31m>AlarmInterrupt<CSI-0m>
Traceback (most recent call last)
<CSI-1;32m><ipython-input-2-529203ce1422><CSI-0m> in
<CSI-0;36m><module><CSI-1;34m>()<CSI-0m>
<CSI-1;32m>----> 1<CSI-1;33m>
<CSI-0m>dummy<CSI-0m><CSI-1;33m>=<CSI-0m><CSI-0m>gp<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>eval<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;34m>'0'<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>;<CSI-0m>
<CSI-0m>alarm<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>Integer<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>Integer<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;36m>1<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>;<CSI-0m>
<CSI-0m>gp<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>_expect_expr<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;34m>'1'<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0m>

<CSI-1;32m>/local/dakrenn/sage/7.6.beta2/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc<CSI-0m>
in <CSI-0;36m>_expect_expr<CSI-1;34m>(self, expr, timeout)<CSI-0m>
<CSI-0;32m> 1126<CSI-0m> <CSI-0m>i<CSI-0m>
<CSI-1;33m>=<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>_expect<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>expect<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>expr<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>timeout<CSI-0m><CSI-1;33m>=<CSI-0m><CSI-0m>timeout<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 1127<CSI-0m>
<CSI-1;32m>else<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-1;32m>-> 1128<CSI-1;33m> <CSI-0m>i<CSI-0m>
<CSI-1;33m>=<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>_expect<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>expect<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>expr<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0m><CSI-0;32m> 1129<CSI-0m> <CSI-1;32m>if<CSI-0m>
<CSI-0m>i<CSI-0m> <CSI-1;33m>><CSI-0m>
<CSI-1;36m>0<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 1130<CSI-0m> <CSI-0m>v<CSI-0m>
<CSI-1;33m>=<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>_expect<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>before<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<BLANKLINE>

<CSI-1;32m>/local/dakrenn/sage/7.6.beta2/local/lib/python2.7/site-packages/pexpect/spawnbase.pyc<CSI-0m>
in <CSI-0;36m>expect<CSI-1;34m>(self, pattern, timeout,
searchwindowsize, async)<CSI-0m>
<CSI-0;32m> 319<CSI-0m>
<CSI-0m>compiled_pattern_list<CSI-0m> <CSI-1;33m>=<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>compile_pattern_list<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>pattern<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 320<CSI-0m> return
self.expect_list(compiled_pattern_list,
<CSI-1;32m>--> 321<CSI-1;33m> timeout,
searchwindowsize, async)
<CSI-0m><CSI-0;32m> 322<CSI-0m> <CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 323<CSI-0m> def expect_list(self, pattern_list,
timeout=-1, searchwindowsize=-1,
<BLANKLINE>

<CSI-1;32m>/local/dakrenn/sage/7.6.beta2/local/lib/python2.7/site-packages/pexpect/spawnbase.pyc<CSI-0m>
in <CSI-0;36m>expect_list<CSI-1;34m>(self, pattern_list, timeout,
searchwindowsize, async)<CSI-0m>
<CSI-0;32m> 343<CSI-0m> <CSI-1;32m>return<CSI-0m>
<CSI-0m>expect_async<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>exp<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>timeout<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 344<CSI-0m>
<CSI-1;32m>else<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-1;32m>--> 345<CSI-1;33m> <CSI-1;32m>return<CSI-0m>
<CSI-0m>exp<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>expect_loop<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>timeout<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0m><CSI-0;32m> 346<CSI-0m> <CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 347<CSI-0m> def expect_exact(self, pattern_list,
timeout=-1, searchwindowsize=-1,
<BLANKLINE>

<CSI-1;32m>/local/dakrenn/sage/7.6.beta2/local/lib/python2.7/site-packages/pexpect/expect.pyc<CSI-0m>
in <CSI-0;36m>expect_loop<CSI-1;34m>(self, timeout)<CSI-0m>
<CSI-0;32m> 97<CSI-0m>
<CSI-1;32m>return<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>timeout<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 98<CSI-0m> <CSI-1;31m># Still have
time left, so read more
data<CSI-0m><CSI-1;33m><CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-1;32m>---> 99<CSI-1;33m>
<CSI-0m>incoming<CSI-0m> <CSI-1;33m>=<CSI-0m>
<CSI-0m>spawn<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>read_nonblocking<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>spawn<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>maxread<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>timeout<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0m><CSI-0;32m> 100<CSI-0m>
<CSI-1;32m>if<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>spawn<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>delayafterread<CSI-0m>
<CSI-1;32m>is<CSI-0m> <CSI-1;32m>not<CSI-0m>
<CSI-0m>None<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 101<CSI-0m>
<CSI-0m>time<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>sleep<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>spawn<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>delayafterread<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<BLANKLINE>

<CSI-1;32m>/local/dakrenn/sage/7.6.beta2/local/lib/python2.7/site-packages/pexpect/pty_spawn.pyc<CSI-0m>
in <CSI-0;36m>read_nonblocking<CSI-1;34m>(self, size, timeout)<CSI-0m>
<CSI-0;32m> 477<CSI-0m> <CSI-0m>timeout<CSI-0m>
<CSI-1;33m>=<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>timeout<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 478<CSI-0m> <CSI-1;32m>if<CSI-0m>
<CSI-0m>timeout<CSI-0m> <CSI-1;33m>!=<CSI-0m>
<CSI-1;36m>0<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-1;32m>--> 479<CSI-1;33m>
<CSI-0m>r<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>w<CSI-0m><CSI-1;33m>,<CSI-0m> <CSI-0m>e<CSI-0m>
<CSI-1;33m>=<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>__select<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>[<CSI-0m><CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>child_fd<CSI-0m><CSI-1;33m>]<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-1;33m>[<CSI-0m><CSI-1;33m>]<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-1;33m>[<CSI-0m><CSI-1;33m>]<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>timeout<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0m><CSI-0;32m> 480<CSI-0m> <CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 481<CSI-0m> <CSI-1;32m>if<CSI-0m>
<CSI-1;32m>not<CSI-0m>
<CSI-0m>r<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<BLANKLINE>

<CSI-1;32m>/local/dakrenn/sage/7.6.beta2/local/lib/python2.7/site-packages/pexpect/pty_spawn.pyc<CSI-0m>
in <CSI-0;36m>__select<CSI-1;34m>(self, iwtd, owtd, ewtd, timeout)<CSI-0m>
<CSI-0;32m> 837<CSI-0m> <CSI-1;32m>while<CSI-0m>
<CSI-0m>True<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 838<CSI-0m>
<CSI-1;32m>try<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-1;32m>--> 839<CSI-1;33m>
<CSI-1;32m>return<CSI-0m>
<CSI-0m>select<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>select<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>iwtd<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>owtd<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>ewtd<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>timeout<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0m><CSI-0;32m> 840<CSI-0m>
<CSI-1;32m>except<CSI-0m>
<CSI-0m>select<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>error<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 841<CSI-0m> <CSI-0m>err<CSI-0m>
<CSI-1;33m>=<CSI-0m>
<CSI-0m>sys<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>exc_info<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>[<CSI-0m><CSI-1;36m>1<CSI-0m><CSI-1;33m>]<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<BLANKLINE>
<CSI-1;32m>src/cysignals/signals.pyx<CSI-0m> in
<CSI-0;36m>cysignals.signals.python_check_interrupt
(build/src/cysignals/signals.c:2854)<CSI-1;34m>()<CSI-0m>
<BLANKLINE>
<CSI-1;32m>src/cysignals/signals.pyx<CSI-0m> in
<CSI-0;36m>cysignals.signals.sig_raise_exception
(build/src/cysignals/signals.c:1335)<CSI-1;34m>()<CSI-0m>
<BLANKLINE>
<CSI-1;31m>AlarmInterrupt<CSI-0m>:
**********************************************************************
1 item had failures:
1 of 9 in sage.interfaces.expect.Expect._expect_expr
[99 tests, 1 failure, 6.09 s]
----------------------------------------------------------------------
sage -t --long src/sage/interfaces/expect.py # 1 doctest failed
----------------------------------------------------------------------
Total time for all tests: 11.1 seconds
cpu time: 0.5 seconds
cumulative wall time: 6.1 seconds
dakrenn@pc72-math /local/dakrenn/sage/7.6.beta2 $ ./sage -t --long
src/sage/repl/interpreter.py
too many failed tests, not using stored timings
Running doctests with ID 2017-02-03-18-24-57-1418e90e.
Git branch: t/21855/public/21855
Using --optional=mpir,python2,sage
Doctesting 1 file.
sage -t --long src/sage/repl/interpreter.py
**********************************************************************
File "src/sage/repl/interpreter.py", line 77, in sage.repl.interpreter
Failed example:
shell.run_cell('1/0')
Expected:

---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent
call last)
<ipython-input-...> in <module>()
----> 1 Integer(1)/Integer(0)
<BLANKLINE>
.../src/sage/rings/integer.pyx in sage.rings.integer.Integer.__div__
(.../cythonized/sage/rings/integer.c:...)()
... if type(left) is type(right):
... if mpz_sgn((<Integer>right).value) == 0:
-> ... raise ZeroDivisionError("rational division
by zero")
... x = <Rational> Rational.__new__(Rational)
... mpq_div_zz(x.value, (<Integer>left).value,
(<Integer>right).value)
<BLANKLINE>
ZeroDivisionError: rational division by zero
Got:

<CSI-1;31m>---------------------------------------------------------------------------<CSI-0m>
<CSI-1;31m>ZeroDivisionError<CSI-0m>
Traceback (most recent call last)
<CSI-1;32m><ipython-input-1-6f88eab09598><CSI-0m> in
<CSI-0;36m><module><CSI-1;34m>()<CSI-0m>
<CSI-1;32m>----> 1<CSI-1;33m>
<CSI-0m>Integer<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;36m>1<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>/<CSI-0m><CSI-0m>Integer<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;36m>0<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0m>

<CSI-1;32m>/local/dakrenn/sage/7.6.beta2/src/sage/rings/integer.pyx<CSI-0m>
in <CSI-0;36m>sage.rings.integer.Integer.__div__
(/local/dakrenn/sage/7.6.beta2/src/build/cythonized/sage/rings/integer.c:12880)<CSI-1;34m>()<CSI-0m>
<CSI-0;32m> 1841<CSI-0m> <CSI-1;32m>if<CSI-0m>
<CSI-0m>type<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>left<CSI-0m><CSI-1;33m>)<CSI-0m>
<CSI-1;32m>is<CSI-0m>
<CSI-0m>type<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>right<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 1842<CSI-0m> <CSI-1;32m>if<CSI-0m>
<CSI-0m>mpz_sgn<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m><<CSI-0m><CSI-0m>Integer<CSI-0m><CSI-1;33m>><CSI-0m><CSI-0m>right<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>value<CSI-0m><CSI-1;33m>)<CSI-0m>
<CSI-1;33m>==<CSI-0m>
<CSI-1;36m>0<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-1;32m>-> 1843<CSI-1;33m>
<CSI-1;32m>raise<CSI-0m>
<CSI-0m>ZeroDivisionError<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;34m>"rational
division by zero"<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0m><CSI-0;32m> 1844<CSI-0m> <CSI-0m>x<CSI-0m>
<CSI-1;33m>=<CSI-0m>
<CSI-1;33m><<CSI-0m><CSI-0m>Rational<CSI-0m><CSI-1;33m>><CSI-0m>
<CSI-0m>Rational<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>__new__<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>Rational<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 1845<CSI-0m>
<CSI-0m>mpq_div_zz<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>x<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>value<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-1;33m>(<CSI-0m><CSI-1;33m><<CSI-0m><CSI-0m>Integer<CSI-0m><CSI-1;33m>><CSI-0m><CSI-0m>left<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>value<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-1;33m>(<CSI-0m><CSI-1;33m><<CSI-0m><CSI-0m>Integer<CSI-0m><CSI-1;33m>><CSI-0m><CSI-0m>right<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>value<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<BLANKLINE>
<CSI-1;31m>ZeroDivisionError<CSI-0m>: rational division by zero
**********************************************************************
File "src/sage/repl/interpreter.py", line 358, in
sage.repl.interpreter.SageTestShell.run_cell
Failed example:
rc = shell.run_cell('1/0')
Expected:

---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent
call last)
...
ZeroDivisionError: rational division by zero
Got:

<CSI-1;31m>---------------------------------------------------------------------------<CSI-0m>
<CSI-1;31m>ZeroDivisionError<CSI-0m>
Traceback (most recent call last)
<CSI-1;32m><ipython-input-1-6f88eab09598><CSI-0m> in
<CSI-0;36m><module><CSI-1;34m>()<CSI-0m>
<CSI-1;32m>----> 1<CSI-1;33m>
<CSI-0m>Integer<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;36m>1<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>/<CSI-0m><CSI-0m>Integer<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;36m>0<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0m>

<CSI-1;32m>/local/dakrenn/sage/7.6.beta2/src/sage/rings/integer.pyx<CSI-0m>
in <CSI-0;36m>sage.rings.integer.Integer.__div__
(/local/dakrenn/sage/7.6.beta2/src/build/cythonized/sage/rings/integer.c:12880)<CSI-1;34m>()<CSI-0m>
<CSI-0;32m> 1841<CSI-0m> <CSI-1;32m>if<CSI-0m>
<CSI-0m>type<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>left<CSI-0m><CSI-1;33m>)<CSI-0m>
<CSI-1;32m>is<CSI-0m>
<CSI-0m>type<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>right<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 1842<CSI-0m> <CSI-1;32m>if<CSI-0m>
<CSI-0m>mpz_sgn<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m><<CSI-0m><CSI-0m>Integer<CSI-0m><CSI-1;33m>><CSI-0m><CSI-0m>right<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>value<CSI-0m><CSI-1;33m>)<CSI-0m>
<CSI-1;33m>==<CSI-0m>
<CSI-1;36m>0<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-1;32m>-> 1843<CSI-1;33m>
<CSI-1;32m>raise<CSI-0m>
<CSI-0m>ZeroDivisionError<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;34m>"rational
division by zero"<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0m><CSI-0;32m> 1844<CSI-0m> <CSI-0m>x<CSI-0m>
<CSI-1;33m>=<CSI-0m>
<CSI-1;33m><<CSI-0m><CSI-0m>Rational<CSI-0m><CSI-1;33m>><CSI-0m>
<CSI-0m>Rational<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>__new__<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>Rational<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-0;32m> 1845<CSI-0m>
<CSI-0m>mpq_div_zz<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>x<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>value<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-1;33m>(<CSI-0m><CSI-1;33m><<CSI-0m><CSI-0m>Integer<CSI-0m><CSI-1;33m>><CSI-0m><CSI-0m>left<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>value<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-1;33m>(<CSI-0m><CSI-1;33m><<CSI-0m><CSI-0m>Integer<CSI-0m><CSI-1;33m>><CSI-0m><CSI-0m>right<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>value<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<BLANKLINE>
<CSI-1;31m>ZeroDivisionError<CSI-0m>: rational division by zero
**********************************************************************
File "src/sage/repl/interpreter.py", line 404, in
sage.repl.interpreter.SagePreparseTransformer
Failed example:
shell.run_cell(bad_syntax)
Expected:
File "<string>", line unknown
SyntaxError: Mismatched ']'
<BLANKLINE>
Got:
<CSI-1;36m> File <CSI-1;32m>"<string>"<CSI-1;36m>, line
<CSI-1;32m>unknown<CSI-0m>
<CSI-1;31m>SyntaxError<CSI-0m><CSI-1;31m>:<CSI-0m> Mismatched ']'
<BLANKLINE>
**********************************************************************
3 items had failures:
1 of 5 in sage.repl.interpreter
1 of 13 in sage.repl.interpreter.SagePreparseTransformer
1 of 6 in sage.repl.interpreter.SageTestShell.run_cell
[131 tests, 3 failures, 2.75 s]
----------------------------------------------------------------------
sage -t --long src/sage/repl/interpreter.py # 3 doctests failed
----------------------------------------------------------------------
Total time for all tests: 9.2 seconds
cpu time: 0.8 seconds
cumulative wall time: 2.8 seconds
dakrenn@pc72-math /local/dakrenn/sage/7.6.beta2 $ ./sage -t --long
src/sage/repl/interface_magic.py
too many failed tests, not using stored timings
Running doctests with ID 2017-02-03-18-25-54-ecd595e6.
Git branch: t/21855/public/21855
Using --optional=mpir,python2,sage
Doctesting 1 file.
sage -t --long src/sage/repl/interface_magic.py
**********************************************************************
File "src/sage/repl/interface_magic.py", line 214, in
sage.repl.interface_magic.InterfaceMagic.line_magic_factory
Failed example:
shell.run_cell('%gap?')
Expected:
Docstring:
Interact with gap
<BLANKLINE>
The line magic %gap sends a single line to the gap interface.
...
Got:
<CSI-1;31m>Docstring:<CSI-0m>
Interact with gap
<BLANKLINE>
The line magic %gap sends a single line to the gap interface.
<BLANKLINE>
INPUT:
<BLANKLINE>
Single gap command
<BLANKLINE>
OUTPUT:
<BLANKLINE>
The result of the evaluated gap command as an interface wrapper
object.
<BLANKLINE>
EXAMPLES:
<BLANKLINE>
sage: %gap 1 + 2 + 3 # not tested
<CSI-1;31m>File:<CSI-0m>
/local/dakrenn/sage/7.6.beta2/local/lib/python2.7/site-packages/sage/repl/interface_magic.py
**********************************************************************
File "src/sage/repl/interface_magic.py", line 262, in
sage.repl.interface_magic.InterfaceMagic.cell_magic_factory
Failed example:
shell.run_cell('%%gap foo\n1+1;\n')
Expected:
File "<string>", line unknown
SyntaxError: Interface magics have no options, got "foo"
<BLANKLINE>
Got:
<CSI-1;36m> File <CSI-1;32m>"<string>"<CSI-1;36m>, line
<CSI-1;32m>unknown<CSI-0m>
<CSI-1;31m>SyntaxError<CSI-0m><CSI-1;31m>:<CSI-0m> Interface magics
have no options, got "foo"
<BLANKLINE>
**********************************************************************
File "src/sage/repl/interface_magic.py", line 266, in
sage.repl.interface_magic.InterfaceMagic.cell_magic_factory
Failed example:
shell.run_cell('%%gap?')
Expected:
Docstring:
Interact with gap
<BLANKLINE>
The cell magic %%gap sends multiple lines to the gap interface.
...
Got:
<CSI-1;31m>Docstring:<CSI-0m>
Interact with gap
<BLANKLINE>
The cell magic %%gap sends multiple lines to the gap interface.
<BLANKLINE>
INPUT:
<BLANKLINE>
Multiple lines of valid gap-commands
<BLANKLINE>
OUTPUT:
<BLANKLINE>
The result of the evaluated gap-commands is printed.
<BLANKLINE>
EXAMPLES:
<BLANKLINE>
sage: %%gap # not tested
....: 1 + 2 + 3;
....: some_gap_command();
<CSI-1;31m>File:<CSI-0m>
/local/dakrenn/sage/7.6.beta2/local/lib/python2.7/site-packages/sage/repl/interface_magic.py
**********************************************************************
2 items had failures:
2 of 11 in sage.repl.interface_magic.InterfaceMagic.cell_magic_factory
1 of 10 in sage.repl.interface_magic.InterfaceMagic.line_magic_factory
[30 tests, 3 failures, 0.74 s]
----------------------------------------------------------------------
sage -t --long src/sage/repl/interface_magic.py # 3 doctests failed
----------------------------------------------------------------------
Total time for all tests: 5.9 seconds
cpu time: 0.6 seconds
cumulative wall time: 0.7 seconds
dakrenn@pc72-math /local/dakrenn/sage/7.6.beta2 $ ./sage -t --long
src/sage/repl/ipython_tests.py
too many failed tests, not using stored timings
Running doctests with ID 2017-02-03-18-26-20-5036ba14.
Git branch: t/21855/public/21855
Using --optional=mpir,python2,sage
Doctesting 1 file.
sage -t --long src/sage/repl/ipython_tests.py
**********************************************************************
File "src/sage/repl/ipython_tests.py", line 10, in sage.repl.ipython_tests
Failed example:
shell.run_cell(u'%pinfo dummy')
Expected:
Signature: dummy(argument, optional=None)
Docstring:
Dummy Docstring Title
<BLANKLINE>
Dummy docstring explanation.
<BLANKLINE>
INPUT:
<BLANKLINE>
* "argument" -- anything. Dummy argument.
<BLANKLINE>
* "optional" -- anything (optional). Dummy optional.
<BLANKLINE>
EXAMPLES:
<BLANKLINE>
...
Init docstring: x.__init__(...) initializes x; see help(type(x)) for
signature
File: .../sage/repl/ipython_tests.py
Type: function
Got:
<CSI-1;31m>Signature:<CSI-0m>
<CSI-0m>dummy<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>argument<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>optional<CSI-0m><CSI-1;33m>=<CSI-0m><CSI-0m>None<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-1;31m>Docstring:<CSI-0m>
Dummy Docstring Title
<BLANKLINE>
Dummy docstring explanation.
<BLANKLINE>
INPUT:
<BLANKLINE>
* "argument" -- anything. Dummy argument.
<BLANKLINE>
* "optional" -- anything (optional). Dummy optional.
<BLANKLINE>
EXAMPLES:
<BLANKLINE>
sage: from sage.repl.ipython_tests import dummy
sage: dummy(1)
'Source code would be here'
<CSI-1;31m>Init docstring:<CSI-0m> x.__init__(...) initializes x;
see help(type(x)) for signature
<CSI-1;31m>File:<CSI-0m>
/local/dakrenn/sage/7.6.beta2/local/lib/python2.7/site-packages/sage/repl/ipython_tests.py
<CSI-1;31m>Type:<CSI-0m> function
**********************************************************************
File "src/sage/repl/ipython_tests.py", line 35, in sage.repl.ipython_tests
Failed example:
shell.run_cell(u'%pinfo stl_int_vector')
Expected:
Docstring:
Example class wrapping an STL vector
<BLANKLINE>
EXAMPLES:
<BLANKLINE>
...
Init docstring: x.__init__(...) initializes x; see help(type(x)) for
signature
File: .../sage/tests/stl_vector.pyx
Type: type
Got:
<CSI-1;31m>Docstring:<CSI-0m>
Example class wrapping an STL vector
<BLANKLINE>
EXAMPLES:
<BLANKLINE>
sage: from sage.tests.stl_vector import stl_int_vector
sage: v = stl_int_vector()
<CSI-1;31m>Init docstring:<CSI-0m> x.__init__(...) initializes x;
see help(type(x)) for signature
<CSI-1;31m>File:<CSI-0m>
/local/dakrenn/sage/7.6.beta2/src/sage/tests/stl_vector.pyx
<CSI-1;31m>Type:<CSI-0m> type
**********************************************************************
File "src/sage/repl/ipython_tests.py", line 52, in sage.repl.ipython_tests
Failed example:
shell.run_cell(u'%pinfo2 dummy')
Expected:
Signature: dummy(argument, optional=None)
Source:
def dummy(argument, optional=None):
"""
Dummy Docstring Title
<BLANKLINE>
Dummy docstring explanation.
<BLANKLINE>
INPUT:
<BLANKLINE>
- ``argument`` -- anything. Dummy argument.
<BLANKLINE>
- ``optional`` -- anything (optional). Dummy optional.
<BLANKLINE>
EXAMPLES::
<BLANKLINE>
...
"""
return 'Source code would be here'
File: .../sage/repl/ipython_tests.py
Type: function
Got:
<CSI-1;31m>Signature:<CSI-0m>
<CSI-0m>dummy<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>argument<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>optional<CSI-0m><CSI-1;33m>=<CSI-0m><CSI-0m>None<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-1;31m>Source:<CSI-0m>
<CSI-1;32m>def<CSI-0m>
<CSI-0m>dummy<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>argument<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>optional<CSI-0m><CSI-1;33m>=<CSI-0m><CSI-0m>None<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;34m>"""<CSI-0m>
<CSI-1;34m> Dummy Docstring Title<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> Dummy docstring explanation.<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> INPUT:<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> - ``argument`` -- anything. Dummy argument.<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> - ``optional`` -- anything (optional). Dummy
optional.<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> EXAMPLES::<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> sage: from sage.repl.ipython_tests import
dummy<CSI-0m>
<CSI-1;34m> sage: dummy(1)<CSI-0m>
<CSI-1;34m> 'Source code would be here' <CSI-0m>
<CSI-1;34m> """<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>return<CSI-0m> <CSI-1;34m>'Source
code would be here'<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-1;31m>File:<CSI-0m>
/local/dakrenn/sage/7.6.beta2/local/lib/python2.7/site-packages/sage/repl/ipython_tests.py
<CSI-1;31m>Type:<CSI-0m> function
**********************************************************************
File "src/sage/repl/ipython_tests.py", line 80, in sage.repl.ipython_tests
Failed example:
shell.run_cell(u'%pinfo2 stl_int_vector')
Expected:
Source:
cdef class stl_int_vector(SageObject):
"""
Example class wrapping an STL vector
<BLANKLINE>
EXAMPLES::
<BLANKLINE>
...
"""
<BLANKLINE>
cdef vector[int] *data
cdef string *name
<BLANKLINE>
def __cinit__(self):
"""
The Cython constructor.
<BLANKLINE>
EXAMPLES::
<BLANKLINE>
...
File: .../sage/tests/stl_vector.pyx
Type: type
Got:
<CSI-1;31m>Source:<CSI-0m>
<CSI-0m>cdef<CSI-0m> <CSI-1;32m>class<CSI-0m>
<CSI-0m>stl_int_vector<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>SageObject<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;34m>"""<CSI-0m>
<CSI-1;34m> Example class wrapping an STL vector<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> EXAMPLES::<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> sage: from sage.tests.stl_vector import
stl_int_vector<CSI-0m>
<CSI-1;34m> sage: v = stl_int_vector()<CSI-0m>
<CSI-1;34m> """<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>cdef<CSI-0m>
<CSI-0m>vector<CSI-0m><CSI-1;33m>[<CSI-0m><CSI-0m>int<CSI-0m><CSI-1;33m>]<CSI-0m>
<CSI-1;33m>*<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>cdef<CSI-0m> <CSI-0m>string<CSI-0m>
<CSI-1;33m>*<CSI-0m><CSI-0m>name<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>def<CSI-0m>
<CSI-0m>__cinit__<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>self<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;34m>"""<CSI-0m>
<CSI-1;34m> The Cython constructor.<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> EXAMPLES::<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> sage: from sage.tests.stl_vector import
stl_int_vector<CSI-0m>
<CSI-1;34m> sage: v = stl_int_vector() # indirect
doctest<CSI-0m>
<CSI-1;34m> sage: TestSuite(v)<CSI-0m>
<CSI-1;34m> Test suite for A vector of integers<CSI-0m>
<CSI-1;34m> vector<int>:<CSI-0m>
<CSI-1;34m> data[0] = 123<CSI-0m>
<CSI-1;34m> data[1] = 456<CSI-0m>
<CSI-1;34m> """<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m>
<CSI-1;33m>=<CSI-0m> <CSI-0m>new<CSI-0m>
<CSI-0m>vector<CSI-0m><CSI-1;33m>[<CSI-0m><CSI-0m>int<CSI-0m><CSI-1;33m>]<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>name<CSI-0m>
<CSI-1;33m>=<CSI-0m> <CSI-0m>new<CSI-0m>
<CSI-0m>string<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m><<CSI-0m><CSI-0m>char<CSI-0m><CSI-1;33m>*<CSI-0m><CSI-1;33m>><CSI-0m><CSI-1;34m>"A
vector of integers\n"<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>push_back<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;36m>123<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>push_back<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;36m>456<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>def<CSI-0m>
<CSI-0m>__dealloc__<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>self<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;34m>"""<CSI-0m>
<CSI-1;34m> The Cython destructor.<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> EXAMPLES::<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> sage: from sage.tests.stl_vector import
stl_int_vector<CSI-0m>
<CSI-1;34m> sage: v = stl_int_vector() # indirect
doctest<CSI-0m>
<CSI-1;34m> """<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>del<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>del<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>name<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>def<CSI-0m>
<CSI-0m>__getitem__<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>self<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>int<CSI-0m>
<CSI-0m>i<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;34m>"""<CSI-0m>
<CSI-1;34m> Return the ``i``-th element.<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> EXAMPLES::<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> sage: from sage.tests.stl_vector import
stl_int_vector<CSI-0m>
<CSI-1;34m> sage: v = stl_int_vector()<CSI-0m>
<CSI-1;34m> sage: v[1]<CSI-0m>
<CSI-1;34m> 456<CSI-0m>
<CSI-1;34m> """<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>assert<CSI-0m>
<CSI-0m>i<CSI-0m><CSI-1;33m>>=<CSI-0m><CSI-1;36m>0<CSI-0m>
<CSI-1;32m>and<CSI-0m>
<CSI-0m>i<CSI-0m><CSI-1;33m><<CSI-0m><CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>size<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>return<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>at<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>i<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>def<CSI-0m>
<CSI-0m>__repr__<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>self<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;34m>"""<CSI-0m>
<CSI-1;34m> Return a string representation.<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> EXAMPLES::<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> sage: from sage.tests.stl_vector import
stl_int_vector<CSI-0m>
<CSI-1;34m> sage: v = stl_int_vector()<CSI-0m>
<CSI-1;34m> sage: v<CSI-0m>
<CSI-1;34m> A vector of integers<CSI-0m>
<CSI-1;34m> vector<int>:<CSI-0m>
<CSI-1;34m> data[0] = 123<CSI-0m>
<CSI-1;34m> data[1] = 456<CSI-0m>
<CSI-1;34m> """<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>s<CSI-0m> <CSI-1;33m>=<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>name<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>c_str<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>s<CSI-0m> <CSI-1;33m>+=<CSI-0m>
<CSI-1;34m>'vector<int>:\n'<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>for<CSI-0m> <CSI-0m>i<CSI-0m>
<CSI-1;32m>in<CSI-0m>
<CSI-0m>range<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;36m>0<CSI-0m><CSI-1;33m>,<CSI-0m><CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>size<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>s<CSI-0m>
<CSI-1;33m>+=<CSI-0m> <CSI-1;34m>'
data['<CSI-0m><CSI-1;33m>+<CSI-0m><CSI-0m>str<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>i<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>+<CSI-0m><CSI-1;34m>']
=
'<CSI-0m><CSI-1;33m>+<CSI-0m><CSI-0m>str<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>at<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>i<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>+<CSI-0m><CSI-1;34m>'\n'<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>return<CSI-0m>
<CSI-0m>s<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>strip<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>cpdef<CSI-0m>
<CSI-0m>sum<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>self<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;34m>"""<CSI-0m>
<CSI-1;34m> Add the elements.<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> EXAMPLES::<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> sage: from sage.tests.stl_vector import
stl_int_vector<CSI-0m>
<CSI-1;34m> sage: v = stl_int_vector()<CSI-0m>
<CSI-1;34m> sage: v.sum()<CSI-0m>
<CSI-1;34m> 579<CSI-0m>
<CSI-1;34m> """<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>cdef<CSI-0m>
<CSI-0m>Integer<CSI-0m> <CSI-0m>accumulator<CSI-0m> <CSI-1;33m>=<CSI-0m>
<CSI-0m>Integer<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;36m>0<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>cdef<CSI-0m>
<CSI-0m>vector<CSI-0m><CSI-1;33m>[<CSI-0m><CSI-0m>int<CSI-0m><CSI-1;33m>]<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>iterator<CSI-0m>
<CSI-0m>i<CSI-0m> <CSI-1;33m>=<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>begin<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m>
<CSI-0m>sig_on<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>while<CSI-0m>
<CSI-0m>i<CSI-0m> <CSI-1;33m>!=<CSI-0m>
<CSI-0m>self<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>end<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m>
<CSI-0m>mpz_add_ui<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>accumulator<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>value<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>accumulator<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>value<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-1;33m><<CSI-0m><CSI-0m>int<CSI-0m><CSI-1;33m>><CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>i<CSI-0m><CSI-1;33m>[<CSI-0m><CSI-1;36m>0<CSI-0m><CSI-1;33m>]<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>i<CSI-0m>
<CSI-1;33m>+=<CSI-0m> <CSI-1;36m>1<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m>
<CSI-0m>sig_off<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>return<CSI-0m>
<CSI-0m>accumulator<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>def<CSI-0m>
<CSI-0m>__richcmp__<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>left<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>stl_int_vector<CSI-0m> <CSI-0m>right<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>int<CSI-0m>
<CSI-0m>op<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;34m>"""<CSI-0m>
<CSI-1;34m> Compare with ``other``.<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> EXAMPLES::<CSI-0m>
<CSI-1;34m><CSI-0m>
<CSI-1;34m> sage: from sage.tests.stl_vector import
stl_int_vector<CSI-0m>
<CSI-1;34m> sage: u = stl_int_vector()<CSI-0m>
<CSI-1;34m> sage: v = stl_int_vector()<CSI-0m>
<CSI-1;34m> sage: u == v<CSI-0m>
<CSI-1;34m> True<CSI-0m>
<CSI-1;34m> """<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>cdef<CSI-0m>
<CSI-0m>stl_int_vector<CSI-0m> <CSI-0m>lhs<CSI-0m> <CSI-1;33m>=<CSI-0m>
<CSI-0m>left<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>cdef<CSI-0m>
<CSI-0m>stl_int_vector<CSI-0m> <CSI-0m>rhs<CSI-0m> <CSI-1;33m>=<CSI-0m>
<CSI-0m>right<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>lx<CSI-0m> <CSI-1;33m>=<CSI-0m>
<CSI-0m>lhs<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>size<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>rx<CSI-0m> <CSI-1;33m>=<CSI-0m>
<CSI-0m>rhs<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>size<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>if<CSI-0m> <CSI-0m>lx<CSI-0m>
<CSI-1;33m>!=<CSI-0m>
<CSI-0m>rx<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>return<CSI-0m>
<CSI-0m>richcmp_not_equal<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>lx<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>rx<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>op<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>cdef<CSI-0m>
<CSI-0m>vector<CSI-0m><CSI-1;33m>[<CSI-0m><CSI-0m>int<CSI-0m><CSI-1;33m>]<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>iterator<CSI-0m>
<CSI-0m>lhs_iter<CSI-0m> <CSI-1;33m>=<CSI-0m>
<CSI-0m>lhs<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>begin<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>cdef<CSI-0m>
<CSI-0m>vector<CSI-0m><CSI-1;33m>[<CSI-0m><CSI-0m>int<CSI-0m><CSI-1;33m>]<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>iterator<CSI-0m>
<CSI-0m>rhs_iter<CSI-0m> <CSI-1;33m>=<CSI-0m>
<CSI-0m>rhs<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>begin<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m>
<CSI-0m>sig_on<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m>
<CSI-1;32m>try<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>while<CSI-0m>
<CSI-0m>lhs_iter<CSI-0m> <CSI-1;33m>!=<CSI-0m>
<CSI-0m>lhs<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>data<CSI-0m><CSI-1;33m>.<CSI-0m><CSI-0m>end<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>left_i<CSI-0m>
<CSI-1;33m>=<CSI-0m>
<CSI-1;33m><<CSI-0m><CSI-0m>int<CSI-0m><CSI-1;33m>><CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>lhs_iter<CSI-0m><CSI-1;33m>[<CSI-0m><CSI-1;36m>0<CSI-0m><CSI-1;33m>]<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>right_i<CSI-0m>
<CSI-1;33m>=<CSI-0m>
<CSI-1;33m><<CSI-0m><CSI-0m>int<CSI-0m><CSI-1;33m>><CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>rhs_iter<CSI-0m><CSI-1;33m>[<CSI-0m><CSI-1;36m>0<CSI-0m><CSI-1;33m>]<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>if<CSI-0m>
<CSI-0m>left_i<CSI-0m> <CSI-1;33m>!=<CSI-0m>
<CSI-0m>right_i<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>return<CSI-0m>
<CSI-0m>richcmp_not_equal<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>left_i<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>right_i<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-0m>op<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>lhs_iter<CSI-0m>
<CSI-1;33m>+=<CSI-0m> <CSI-1;36m>1<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-0m>rhs_iter<CSI-0m>
<CSI-1;33m>+=<CSI-0m> <CSI-1;36m>1<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m>
<CSI-1;32m>finally<CSI-0m><CSI-1;33m>:<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m>
<CSI-0m>sig_off<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m>
<CSI-1;33m><CSI-0m> <CSI-1;32m>return<CSI-0m>
<CSI-0m>rich_to_bool<CSI-0m><CSI-1;33m>(<CSI-0m><CSI-0m>op<CSI-0m><CSI-1;33m>,<CSI-0m>
<CSI-1;36m>0<CSI-0m><CSI-1;33m>)<CSI-0m><CSI-1;33m><CSI-0m><CSI-0m>
<CSI-1;31m>File:<CSI-0m>
/local/dakrenn/sage/7.6.beta2/src/sage/tests/stl_vector.pyx
<CSI-1;31m>Type:<CSI-0m> type
**********************************************************************
1 item had failures:
4 of 19 in sage.repl.ipython_tests
[20 tests, 4 failures, 0.56 s]
----------------------------------------------------------------------
sage -t --long src/sage/repl/ipython_tests.py # 4 doctests failed
----------------------------------------------------------------------
Total time for all tests: 1.0 seconds
cpu time: 0.6 seconds
cumulative wall time: 0.6 seconds
dakrenn@pc72-math /local/dakrenn/sage/7.6.beta2 $


Samuel Lelièvre

unread,
Feb 3, 2017, 2:56:39 PM2/3/17
to sage-release


2017-02-03 18:28 GMT+01:00 Daniel Krenn <kr...@aon.at>:

> On 2017-02-01 22:39, Volker Braun wrote:
> > As always, you can get the latest beta version from the "develop" git
> > branch.
>
> Fresh clone on Linux Mint 17.3, make ptestlong reports
>
> sage -t --long src/sage/interfaces/expect.py  # 1 doctest failed
> sage -t --long src/sage/repl/interpreter.py  # 3 doctests failed
> sage -t --long src/sage/repl/interface_magic.py  # 3 doctests failed
> sage -t --long src/sage/repl/ipython_tests.py  # 4 doctests failed

Same failures on OS X 10.10.5 (Yosemite), but starting from the
Sage 7.6.beta1 tarball.

I noticed I had anaconda3 in my PATH, not sure if this could have any
influence. Maybe I should try again with an anaconda-free PATH?

Samuel

Emmanuel Charpentier

unread,
Feb 4, 2017, 4:12:30 AM2/4/17
to sage-release
Indeed... Sorry for the answering delay (NI...).

--
Emmanuel Charpentier

Jean-Philippe Labbé

unread,
Feb 4, 2017, 4:34:12 AM2/4/17
to sage-release
Hi,

I get:

====================
Error building Sage.

The following package(s) may have failed to build (not necessarily 
during this run of 'make all'): 

* package: python 
log file: /sage/logs/pkgs/python.log 
build directory: /sage/local/var/tmp/sage/build/python
=====================

Before that it was building the doc, and before that installing the jupyter client.

I did not run the all the test yet, but sage seems to run without problems so far.

Daniel Krenn

unread,
Feb 4, 2017, 5:27:35 AM2/4/17
to sage-r...@googlegroups.com
On 2017-02-03 20:56, Samuel Lelièvre wrote:
>> Fresh clone on Linux Mint 17.3, make ptestlong reports
>>
>> sage -t --long src/sage/interfaces/expect.py # 1 doctest failed
>> sage -t --long src/sage/repl/interpreter.py # 3 doctests failed
>> sage -t --long src/sage/repl/interface_magic.py # 3 doctests failed
>> sage -t --long src/sage/repl/ipython_tests.py # 4 doctests failed
>
> Same failures on OS X 10.10.5 (Yosemite), but starting from the
> Sage 7.6.beta1 tarball.
>
> I noticed I had anaconda3 in my PATH, not sure if this could have any
> influence. Maybe I should try again with an anaconda-free PATH?

I have no anaconda somewhere...so I the problem must come from something
else.


Volker Braun

unread,
Feb 4, 2017, 5:32:24 AM2/4/17
to sage-release
I think its likely that you have some local configuration, probably ipython, that is being picked up accidentally. The failures all come from switching on ascii colors even though they shoudn't be for doctests. In any case I can't reproduce it.

Samuel Lelièvre

unread,
Feb 4, 2017, 5:55:00 AM2/4/17
to sage-release
2017-02-04 11:32 GMT+01:00 Volker Braun:
I think its likely that you have some local configuration, probably ipython,
that is being picked up accidentally. The failures all come from switching on
ascii colors even though they shoudn't be for doctests.
In any case I can't reproduce it.

You are right Volker!

I followed the hint in fidbc's answer at [0]


and I have the following 'init.sage':

    $ cat $HOME/.sage/init.sage 
    %colors Linux

Should 'make ptestlong' ignore the content of 'init.sage'?
Should I hide my 'init.sage' before running 'make ptestlong'?
Would it make a difference if I followed Sébastien's answer
at [0] instead of fidbc's answer? I can investigate all that in
the coming week.

Daniel Krenn

unread,
Feb 4, 2017, 6:06:51 AM2/4/17
to sage-r...@googlegroups.com
On 2017-02-04 11:54, Samuel Lelièvre wrote:
> You are right Volker!
>
> I followed the hint in fidbc's answer at [0]
>
> [0] https://ask.sagemath.org/question/10060/sage-terminal-colors/
>
> and I have the following 'init.sage':
>
> $ cat $HOME/.sage/init.sage
> %colors Linux

I have this as well in my init.sage.

> Should 'make ptestlong' ignore the content of 'init.sage'?

+1, I think (without having thought too much about it...)

> Should I hide my 'init.sage' before running 'make ptestlong'?

This cannot (and should not) be the solution.

Daniel

Simon King

unread,
Feb 4, 2017, 6:20:32 AM2/4/17
to sage-r...@googlegroups.com
Hi!

On 2017-02-04, Daniel Krenn <kr...@aon.at> wrote:
>> Should 'make ptestlong' ignore the content of 'init.sage'?
>
> +1, I think (without having thought too much about it...)

+1. IIRC, init.sage is about the user's personal configuration
for interactive sessions, and s/he might want to use, say, implicit
multiplication (such that 4x rather than 4*x becomes valid syntax). But
in any task that is not interactive, which includes doctesting, the
interactor's (i.e., user's) personal configuration should be irrelevant.

Cheers,
Simon

Volker Braun

unread,
Feb 4, 2017, 8:41:49 AM2/4/17
to sage-release
On Saturday, February 4, 2017 at 11:55:00 AM UTC+1, Samuel Lelievre wrote:
Should 'make ptestlong' ignore the content of 'init.sage'?

Yes. 

Jeroen Demeyer

unread,
Feb 4, 2017, 9:12:23 AM2/4/17
to sage-r...@googlegroups.com
On 2017-02-04 10:34, Jean-Philippe Labbé wrote:
> Before that it was building the doc, and before that installing the
> jupyter client.

Logs please... ignore the "python" thing, it's most likely not the
reason for the failure.

Justin C. Walker

unread,
Feb 4, 2017, 7:02:11 PM2/4/17
to sage-r...@googlegroups.com

On Feb 1, 2017, at 13:39 , Volker Braun wrote:

> As always, you can get the latest beta version from the "develop" git
> branch. Alternatively, the self-contained source tarball is at
> http://www.sagemath.org/download-latest.html

Built from the tarball on macOS 10.11.6 (Quad-core Core i7), w/o problems. All tests ('ptestlong') passed!

Justin

--
Justin C. Walker
Curmudgeon-at-large
Director
Institute for the Absorption of Federal Funds
----
186,000 Miles per Second
Not just a good idea:
it's the law!
----

Samuel Lelievre

unread,
Feb 5, 2017, 3:59:47 PM2/5/17
to sage-release
Note that there is a ticket for that:

    #20270 some doctests are influenced by the contents of init.sage 

Samuel Lelievre

unread,
Feb 5, 2017, 4:01:32 PM2/5/17
to sage-release
Ironically, the Sage Notebook should load init.sage but does not:

    #20042 init.sage is not loaded by the sage notebook at startup
 

Daniel Krenn

unread,
Feb 6, 2017, 2:13:17 AM2/6/17
to sage-r...@googlegroups.com
Does someone know how to fix this? (I had a quick look, but it seems
like I (as someone who has no idea of the internals of
ipython/kernel/doctesting) have to search deeply...)

Daniel

Jean-Philippe Labbé

unread,
Feb 6, 2017, 2:23:19 PM2/6/17
to sage-release
Everything looks normal in the "install.log" file. I made a circular search with the keyword "error" in that file and did not find anything I could report. My install.log has more than 4M lines, any pointer on which log I should look at? Nothing to report in the start.log.

There is nothing to report excepted this "python" error, for which I copied the whole log file.

Sage seems to be working without trouble though, so it seems not to be a big deal(!?).

I will most likely recompile soon, with the Sagedays84 coming up. If the error persists, I will make a follow-up.

Thanks a lot for your time,

Daniel Krenn

unread,
Feb 28, 2017, 3:55:23 AM2/28/17
to sage-r...@googlegroups.com
We still have this bug. It would be great if someone, who can, would fix
it...

Daniel

Reply all
Reply to author
Forward
0 new messages