Bug: Gap3 interface confuses variables
Running
gap3('4', name = 'x')
gap3('5', name = 'y')
gap3('6', name = 'z')
followed up by
gap3('x')
gap3('y')
gap3('z')
gap3('x')
yields
4
5
6
6
instead of 4,5,6,4. Is this a bug or am I doing this wrong?
Update: I've tried it on a different computer (which uses a slightly older version of Sage) and did not have any issues there. I'm running the latest version of Sage here; any idea what might be causing this?
Update2: I'm experiencing the exact same problem on the other computer, when running slightly more complicated code: the gap3 interface seems to override its variables with other outputs.
That's possible; the gap3 module is not well-tested or particularly maintained. It might be deprecated at some point.
Is there something in particular forcing you to use gap3?
Yes, the CHEVIE package - currently I'm doing some computations with braids.
I had a feeling :/ Why don't you ask the authors of CHEVIE if they'd like to help maintain the gap3 interface to Sage, since they seem to think continuing to support gap3 is easier than porting their code to a system that's still supported :/
(P.S. I don't say this to be snarky to you; your problem is legitimate.)