Re: [sage-devel] Re: Groups and ParentWithGens vs. Parent

2012-11-07 Thread Robert Bradshaw
On Wed, Nov 7, 2012 at 2:43 AM, Florent Hivert wrote: > Hi, > >> > So, if you want a general framework, I could imagine that the following >> > could work. Provide Parent with a method, say, >> > def to_generator_data(self,x) >> > which by default raises a NotImplementedError. >> > And t

Re: [sage-devel] Re: Groups and ParentWithGens vs. Parent

2012-11-07 Thread Florent Hivert
Hi, > > So, if you want a general framework, I could imagine that the following > > could work. Provide Parent with a method, say, > > def to_generator_data(self,x) > > which by default raises a NotImplementedError. > > And then, there could be a method > > def from_generator_data(se

Re: [sage-devel] Re: Groups and ParentWithGens vs. Parent

2012-11-05 Thread Robert Bradshaw
On Mon, Nov 5, 2012 at 2:18 AM, Simon King wrote: > Hi Marco, > > On 2012-11-04, mmarco wrote: >> I don't know if this is the right place and time to ask this: what >> about morphisms for Parent with generators? I mean, in some cases, you >> can define a morphism just by passing a list with the i