[sage-devel] Re: Inheritance from Parent and QuotientRing_nc leads to a TypeError

2013-07-07 Thread Travis Scrimshaw
Hey, I think we would need a dedicated sage days to removing ParentWithGens and +1 to having it. Best, Travis On Saturday, July 6, 2013 3:05:09 PM UTC+5:30, mmarco wrote: > > Maybe we should make a plan to move old code from ParentWithGens to > Parent? A sage days dedicated to this would be

[sage-devel] Re: Inheritance from Parent and QuotientRing_nc leads to a TypeError

2013-07-06 Thread mmarco
Maybe we should make a plan to move old code from ParentWithGens to Parent? A sage days dedicated to this would be a good idea? And while we are at it, try to make a better designs for the generators issue. -- You received this message because you are subscribed to the Google Groups "sage-d

[sage-devel] Re: Inheritance from Parent and QuotientRing_nc leads to a TypeError

2013-07-06 Thread Thomas Feulner
Hi Simon, thank you very much for your help. This was the solution! (and that I should not pass names=None to QuotientRing_nc.__init__ ;-) ) @Volker: I hope that ParentWithGens will be removed soon. For a beginner, it is really hard to figure out how to define derived classes, especially when y

[sage-devel] Re: Inheritance from Parent and QuotientRing_nc leads to a TypeError

2013-07-05 Thread Simon King
Hi Thomas, sorry, I first got your mail off-list, and thought that you did not post here. On 2013-07-05, Thomas Feulner wrote: > You are right, maybe my example was to tiny. Here is another one, which > also initializes the > QuotientRing_nc, too: > > sage: from sage.rings.quotient_ring import

[sage-devel] Re: Inheritance from Parent and QuotientRing_nc leads to a TypeError

2013-07-05 Thread Volker Braun
I think the support for generators in Parents is basically non-functional at this point. You are better of implementing your own gens() method. See also my related question here: https://groups.google.com/d/msg/sage-devel/3c0vPGOWWMI/AUGgiTrJIigJ ParentWithGens is deprecated, it is only in the

[sage-devel] Re: Inheritance from Parent and QuotientRing_nc leads to a TypeError

2013-07-05 Thread Thomas Feulner
Hi Simon, Am Freitag, 5. Juli 2013 12:26:19 UTC+2 schrieb Simon King: > > Hi Thomas, > > On 2013-07-04, Thomas Feulner > > wrote: > > I am trying to build a class which derives from Parent and > QuotientRing_nc > > at the same time. I want to inherit from Y and QuotientRing_nc at the sam

[sage-devel] Re: Inheritance from Parent and QuotientRing_nc leads to a TypeError

2013-07-05 Thread Simon King
Hi Thomas, On 2013-07-04, Thomas Feulner wrote: > I am trying to build a class which derives from Parent and QuotientRing_nc > at the same time. Why? QuotientRing_nc already is a sub-class: sage: from sage.rings.quotient_ring import QuotientRing_nc sage: issubclass(QuotientRing_nc, sage.stru

[sage-devel] Re: Inheritance

2008-11-12 Thread Robert Bradshaw
On Nov 12, 2008, at 1:35 AM, Nicolas M. Thiery wrote: > > Dear Mike, dear Robert B., > >> Mike: >> Maybe I'm just confused, but I'm not sure how the element >> hierarchy in >> your categories works with Cython. In particular, what do you see >> the >> inheritance tree looking like for

[sage-devel] Re: Inheritance

2008-11-12 Thread Nicolas M. Thiery
Dear Mike, dear Robert B., > Mike: > Maybe I'm just confused, but I'm not sure how the element hierarchy in > your categories works with Cython. In particular, what do you see the > inheritance tree looking like for say ModuleElement since you want > that to be in Cython so that arithmet