@@ -984,7 +984,7 @@ cdef class GapElement(RingElement):
984
984
GAPError: Error, no method found!
985
985
Error, no 1st choice method found for `+ ' on 2 arguments
986
986
"""
987
- cdef Obj result
987
+ cdef volatile Obj result
988
988
try :
989
989
sig_GAP_Enter()
990
990
sig_on()
@@ -1012,7 +1012,7 @@ cdef class GapElement(RingElement):
1012
1012
...
1013
1013
GAPError: Error, no method found! ...
1014
1014
"""
1015
- cdef Obj result
1015
+ cdef volatile Obj result
1016
1016
try :
1017
1017
sig_GAP_Enter()
1018
1018
sig_on()
@@ -1041,7 +1041,7 @@ cdef class GapElement(RingElement):
1041
1041
GAPError: Error, no method found!
1042
1042
Error, no 1st choice method found for `* ' on 2 arguments
1043
1043
"""
1044
- cdef Obj result
1044
+ cdef volatile Obj result
1045
1045
try :
1046
1046
sig_GAP_Enter()
1047
1047
sig_on()
@@ -1075,7 +1075,7 @@ cdef class GapElement(RingElement):
1075
1075
...
1076
1076
GAPError: Error, Rational operations: <divisor> must not be zero
1077
1077
"""
1078
- cdef Obj result
1078
+ cdef volatile Obj result
1079
1079
try :
1080
1080
sig_GAP_Enter()
1081
1081
sig_on()
@@ -1102,7 +1102,7 @@ cdef class GapElement(RingElement):
1102
1102
GAPError: Error, no method found!
1103
1103
Error, no 1st choice method found for `mod' on 2 arguments
1104
1104
"""
1105
- cdef Obj result
1105
+ cdef volatile Obj result
1106
1106
try :
1107
1107
sig_GAP_Enter()
1108
1108
sig_on()
@@ -1150,6 +1150,7 @@ cdef class GapElement(RingElement):
1150
1150
GAPError: Error, no method found! Error, no 1st choice
1151
1151
method found for `InverseMutable' on 1 arguments
1152
1152
"""
1153
+ cdef volatile Obj result
1153
1154
try :
1154
1155
sig_GAP_Enter()
1155
1156
sig_on()
@@ -2484,24 +2485,23 @@ cdef class GapElement_Function(GapElement):
2484
2485
sage: libgap.Sum(rnd)
2485
2486
6
2486
2487
2487
- sage: from sage.libs.gap.util import GAPError
2488
2488
sage: for i in range(100):
2489
2489
....: rnd = [ randint(-10,10) for i in range(randint(0,7)) ]
2490
2490
....: # compute the sum in GAP
2491
2491
....: _ = libgap.Sum(rnd)
2492
2492
....: try:
2493
2493
....: libgap.Sum(*rnd)
2494
- ....: print('This should have triggered a GAPError ')
2494
+ ....: print('This should have triggered a ValueError ')
2495
2495
....: print('because Sum needs a list as argument')
2496
- ....: except GAPError :
2496
+ ....: except ValueError :
2497
2497
....: pass
2498
2498
2499
2499
sage: libgap_exec = libgap.eval("Exec")
2500
2500
sage: libgap_exec('echo hello from the shell')
2501
2501
hello from the shell
2502
2502
"""
2503
- cdef Obj result = NULL
2504
- cdef Obj arg_list
2503
+ cdef volatile Obj result = NULL
2504
+ cdef volatile Obj arg_list
2505
2505
cdef int n = len (args)
2506
2506
cdef volatile Obj v2
2507
2507
0 commit comments