Hi Dima, On 2014-10-01, Dima Pasechnik <[email protected]> wrote: >> sage: R = libgap.eval('rec(a:=1, b:=2)') >> sage: R.RecFields() # So, creating the record did work >> [ "b", "a" ] > > R is a Python dictionary
No, it isn't. sage: type(R) <type 'sage.libs.gap.element.GapElement_Record'> but... > So you just can do > > R["a"] > and get 1, Great, that works: sage: R['a'] 1 Thank you very much! I already thought I would need to define the dot operator and then use it, based on Gap's RNamObj... Best regards, Simon -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
