In Magma, many commands return multiple values, for instance:

sage: %magma
magma: XGCD(15, 10)
5 1 -1

However, the following happens in SAGE:

sage: magma.XGCD(15, 10)
5

Is there a good way for the Magma interface to detect multiple return
values and bundle them into a Python tuple? Then I'd be able to say

sage: x, y, z = magma.XGCD(15, 10)

and have now x == 5, y == 1, z == -1.

Kiran


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to