Hi Vincent, On 2015-04-23, Vincent Delecroix <[email protected]> wrote: > My is guess that: > - all parents should define `_an_element_`
+1. Note the similarity with Python special methods: We provide a default implementation for an_element (resp. for __add__), and the default implementation relies on a single underscore method _an_element_ (resp. _add_). > - we should get rid of `_an_element_impl` and `_an_element_c_impl` +1 > - make the caching in `sage.structure.parent.Parent` and > `category.sets_cat.Sets` compatible. How? I think the default way to create a cached method for a parent is @cached_method. It is guaranteed that it works on all parents, even when they are Cython extension classes that don't accept setting attributes. 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.
