Le 15/03/2015 21:16, Simon King a écrit :
Hi Vincent,

On 2015-03-15, Vincent Delecroix <20100.delecr...@gmail.com> wrote:
But in that very particular case, just evaluating the string
representation in GAP gives you back the same group

Yes, "in *that* very particular case". So, it is not possible to make a
*general* pickling method for GAP-related objects. String representation
sometimes works, sometimes doesn't. Of course, if you implement
something where the pickling-by-representation happens to work, then you
can exploit it.

If pickling gap objects is so fragile, and works only by luck, accident or both, perhaps a doctest should be added to any code which expects it to work -- to check that a later gap upgrade still satisfies this welcome coincidence ?

Snark on #sagemath

--
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