Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Note that

sage: gap("19+5")
24

so feeding a string to the gap interface tries to interpret it as input. With gap.FileString, this will probably happen with the string you want to write to a file as well. In any case, writing this long string in python to a file by transferring it to a gap process is rather inefficient anyway. It's much better to write the string into a file straight from python and then read that file into GAP using the gap routine you would like to use.