[sage-combinat-devel] Re: Need help defining a class with parent EnumeratedSets whose init take a list

2013-06-14 Thread Amritanshu Prasad
Thanks Simon, Now it makes more sense. Amri. On Friday, June 14, 2013 6:41:58 PM UTC+5:30, Simon King wrote: > > Hi Prasad, > > On 2013-06-14, Amritanshu Prasad > > wrote: > > I am trying to define a class with parent EnumeratedSets whose > constructor > > takes a list as an input. > > Fir

[sage-combinat-devel] Re: Need help defining a class with parent EnumeratedSets whose init take a list

2013-06-14 Thread Amritanshu Prasad
Thanks, Nicolas. The documentation is pretty good; I think I am starting to understand. Amri. On Friday, June 14, 2013 8:09:29 PM UTC+5:30, Nicolas M. Thiery wrote: > > Dear Amritanshu, > > On Thu, Jun 13, 2013 at 10:19:32PM -0700, Amritanshu Prasad wrote: > >I am trying to define

[sage-combinat-devel] Need help defining a class with parent EnumeratedSets whose init take a list

2013-06-14 Thread Nicolas M. Thiery
Dear Amritanshu, On Thu, Jun 13, 2013 at 10:19:32PM -0700, Amritanshu Prasad wrote: >I am trying to define a class with parent EnumeratedSets whose constructor >takes a list as an input. >I tried: >class MyExample(UniqueRepresentation, Parent): >def __init__(self, i

[sage-combinat-devel] Re: Paper publication of the book "Calcul Mathematique avec Sage"

2013-06-14 Thread tom d
Congratulations! This reminds me that I need to work on my paper interface to the Sage Cell Server. :) On Wednesday, June 12, 2013 12:18:21 AM UTC+3, Dox wrote: > > Great work! Congratulations! > -- You received this message because you are subscribed to the Google Groups "sage-combinat-deve

[sage-combinat-devel] Re: Need help defining a class with parent EnumeratedSets whose init take a list

2013-06-14 Thread Simon King
Hi Prasad, On 2013-06-14, Amritanshu Prasad wrote: > I am trying to define a class with parent EnumeratedSets whose constructor > takes a list as an input. First of all, EnumeratedSets is a category. So, I suppose you mean: You try to define a parent in the category of enumerated sets. This is

[sage-combinat-devel] Need help defining a class with parent EnumeratedSets whose init take a list

2013-06-14 Thread Amritanshu Prasad
I am trying to define a class with parent EnumeratedSets whose constructor takes a list as an input. I tried: class MyExample(UniqueRepresentation, Parent): def __init__(self, input): self._input = input def __repr__(self): return str(self._input) but when I said