We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5928fd commit 2697eedCopy full SHA for 2697eed
src/sage/libs/gap/libgap.pyx
@@ -217,6 +217,7 @@ from .gap_includes cimport *
217
from .util cimport *
218
from .element cimport *
219
220
+from sage.cpython.string cimport str_to_bytes
221
from sage.structure.parent cimport Parent
222
from sage.structure.element cimport Vector
223
from sage.rings.integer_ring import ZZ
@@ -539,7 +540,7 @@ class Gap(Parent):
539
540
...
541
GAPError: Error, VAL_GVAR: No value bound to FooBar
542
"""
- return make_any_gap_element(self, GAP_ValueGlobalVariable(variable))
543
+ return make_any_gap_element(self, GAP_ValueGlobalVariable(str_to_bytes(variable)))
544
545
def global_context(self, variable, value):
546
0 commit comments