[sage-devel] categories and element classes

2012-03-26 Thread Alex Ghitza
Hello sage-devel, Schemes and their points are not yet properly embedded in the category framework. One of the trac tickets listing the issues is http://trac.sagemath.org/sage_trac/ticket/7946 which mentions that Volker Braun had resolved some of the issues but some related to elements still r

Re: [sage-devel] categories and element classes

2012-03-24 Thread Nicolas M. Thiery
On Fri, Mar 23, 2012 at 07:33:01PM -0700, David Roe wrote: >Unfortunately, whenever I write a Python class I've also been very >frustrated trying to get the class I'm writing to inherit from the >appropriate element_class. As a consequence I try to write most of my >elements in Cyt

Re: [sage-devel] categories and element classes

2012-03-23 Thread David Roe
Elements are supposed to inherit from their category's element_class, but this requirement is waived for elements that are implemented in Cython. See the following snippet from sage.structure.element.Element._test_category (line 495 of element.pyx): # Tests that self inherits methods from

[sage-devel] categories and element classes

2012-03-23 Thread AlexGhitza
Hello sage-devel, (I sent this from my email a couple of hours ago but it hasn't appeared on the list yet. I am trying again from within Google Groups. Apologies if it ends up being a duplicate post.) Schemes and their points are not yet properly embedded in the category framework. One of th