Hi Viviane,

On 2015-06-11, Viviane Pons <[email protected]> wrote:
> --001a11c30bf01b2ff30518428ad5
> Content-Type: text/plain; charset=UTF-8
>
> Yes, but my problem is that I am inheriting in a file and that is not
> working at the moment. I did in the command line to show the error, but
> actually I cannot make it work on a simple file:
>
> I have a file containing only this:
>
> from sage.categories.graded_algebras import GradedAlgebras
>
> class Facade_polynomial_ring(GradedAlgebras):
>     pass

Why do you want to create a sub-class of GradedAlgebras?

First of all, it looks like you want to create a polynomial ring, not a
category. And if you really want to create a category, then I think you
should not form a sub-class of an existing category-class, but you
should have
  class MyCategory(Category):
      bla
(respectively CategoryWithAxiom respectively its singleton
counterparts).

I suppose you know that for creating a sub-category one should implement
(extra_)super_categories, but not form a sub-class of another category
class.

Best regards,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to