Re: [sage-devel] Re: Permutation groups and pickling

2014-05-01 Thread Nicolas M. Thiery
Hi Simon, Just a quick answer. On Thu, May 01, 2014 at 09:05:59AM +, Simon King wrote: > > - Implement a __reduce__ method to pickle by construction. > > This would mean to store the input parameters somewhere, which is likely > to create new memory leaks. There already is a .constr

[sage-devel] Re: Permutation groups and pickling

2014-05-01 Thread Simon King
Hi Nicolas, On 2014-05-01, Nicolas M. Thiery wrote: > Analysis: the __setstate__ method of ParentWithGens does not store the > category whenever _element_constructor is not implemented. Funny. > Some approaches to fix this include: > > - Use UniqueRepresentation for permutation groups. > (wit