File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -2480,16 +2480,9 @@ cdef class GapElement_Function(GapElement):
2480
2480
GAPError: Error, no method found!
2481
2481
Error, no 1st choice method found for `SumOp' on 2 arguments
2482
2482
2483
- sage: for i in range(100):
2484
- ....: rnd = [ randint(-10,10) for i in range(randint(0,7)) ]
2485
- ....: # compute the sum in GAP
2486
- ....: _ = libgap.Sum(rnd)
2487
- ....: try:
2488
- ....: libgap.Sum(*rnd)
2489
- ....: print('This should have triggered a ValueError')
2490
- ....: print('because Sum needs a list as argument')
2491
- ....: except ValueError:
2492
- ....: pass
2483
+ sage: rnd=[1,2,3]
2484
+ sage: libgap.Sum(rnd)
2485
+ 6
2493
2486
2494
2487
sage: libgap_exec = libgap.eval("Exec")
2495
2488
sage: libgap_exec('echo hello from the shell')
You can’t perform that action at this time.
0 commit comments