Re: [sage-devel] Errors in an old, massive patch for Skew Polynomials in Sage

2016-06-19 Thread Arpit Merchant
Hello, Yay, that worked!!! I needed to create and appropriately assign the attribute Element to this class. Thank you! :) I'm attaching the updated error file now. Arpit. On 20 June 2016 at 00:45, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > You might want to read > > > http://doc.s

Re: [sage-devel] Errors in an old, massive patch for Skew Polynomials in Sage

2016-06-19 Thread Vincent Delecroix
You might want to read http://doc.sagemath.org/html/en/thematic_tutorials/coercion_and_categories.html#coercion-and-categories I answer to your specific questions below. On 19/06/16 21:08, Arpit Merchant wrote: 1 class MyElement(Element): 2 ... 3 4 class MyParent(Parent): 5Elem

Re: [sage-devel] Errors in an old, massive patch for Skew Polynomials in Sage

2016-06-19 Thread Arpit Merchant
> > > 1 class MyElement(Element): > 2 ... > 3 > 4 class MyParent(Parent): > 5Element = MyElement > 6 > 7def __init__(self, ...): > 8 ... > 9 Parent.__init__(self, ...) > > I'm not sure I understand what you mean. Could you please elaborate >> a little?

Re: [sage-devel] Errors in an old, massive patch for Skew Polynomials in Sage

2016-06-19 Thread Vincent Delecroix
On 19/06/16 20:29, Arpit Merchant wrote: Hello, AttributeError: 'CenterSkewPolynomialRing_with_category' object has no attribute 'element_class' is due to some bad initialization. There should be an attribute "Element" defined on the parent before calling the "Parent" constructor. In other w

Re: [sage-devel] Errors in an old, massive patch for Skew Polynomials in Sage

2016-06-19 Thread Arpit Merchant
Hello, AttributeError: 'CenterSkewPolynomialRing_with_category' object > has no attribute 'element_class' > > is due to some bad initialization. There should be an attribute > "Element" defined on the parent before calling the "Parent" constructor. > In other words, you should follow the

Re: [sage-devel] Errors in an old, massive patch for Skew Polynomials in Sage

2016-06-19 Thread Vincent Delecroix
Without looking carefully, the error AttributeError: 'CenterSkewPolynomialRing_with_category' object has no attribute 'element_class' is due to some bad initialization. There should be an attribute "Element" defined on the parent before calling the "Parent" constructor. In other words,

[sage-devel] Errors in an old, massive patch for Skew Polynomials in Sage

2016-06-19 Thread Arpit Merchant
Hello, About four years ago, Xavier Caruso wrote a patch for Skew Polynomials in Sage. I am trying to get it (Ticket #13215 ) merged and I've run into a lot of errors because the internal infrastructure in Sage has changed a lot since then. I've managed t