| 1 | initial version |
It looks like you can do it via the libgap library interface:
sage: w = libgap.eval('rec( a := 1, b := "deux" );')
sage: w['a']
1
sage: w['b']
"deux"
sage: w2 = libgap({'a':1,'b':'deux'})
sage: w == w2
True
(note that gap records are quite like associative arrays, so letting them correspond to python dicts seems a reasonable interface design. It doesn't look like this mapping was taken into consideration in the pexpect based interface)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.