But in that very particular case, just evaluating the string
representation in GAP gives you back the same group

sage: s = "Group([ [ [ 1, 1 ], [ 0, 1 ] ], [ [ 1, 0 ], [ 1, 1 ] ] ])"
sage: G = libgap.eval(s)
sage: str(G) == s
True
sage: G == libgap.eval(s)
True

Is it better/safer to always raise an error?

Vincent

On 15/03/2015, Volker Braun <vbraun.n...@gmail.com> wrote:
> We should show a better error message
>
> But afaik GAP doesn't have a pickling feature apart from saving the entire
> workspace, so there is little we can do about it.
>
>
>
> On Sunday, March 15, 2015 at 12:16:28 PM UTC+1, vdelecroix wrote:
>>
>> Hello,
>>
>> I am trying to implement a native SL(n,Z) in Sage using our dense
>> matrices. But while factoring some code in sage.groups.matrix_gps I
>> ran into
>>
>> sage: G = libgap.eval("Group([ [ [ 1, 1 ], [ 0, 1 ] ], [ [ 1, 0 ], [
>> 1, 1 ] ] ])")
>> sage: loads(dumps(G))
>> Traceback (most recent call last)
>> ...
>> AttributeError: Python special name, not a GAP function.
>>
>> Is that the expected behavior?
>>
>> Thanks
>> Vincent
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to