On 2013-06-20, Simon King <simon.k...@uni-jena.de> wrote: > Hi! > > On 2013-06-20, Nathann Cohen <nathann.co...@gmail.com> wrote: >> And I can also add to this comment that you can actually implement this >> feature using decorators at no cost, because you can do this without >> changing the function at all. If you want a decorator that does that >> >> @find_stat_properties(surjective = True, from=whatever, to=whatever2) >> >> and registers the method in some database in Sage, then the decorator can >> return the very function it has been given and there is nothing wrong with >> that. Right now there is a class in the middle, though. > > +1 > > From what we heard at SD49, this is about registering certain methods as > "being useful to apply when exploring combinatorial statistics". > > *Registering* > > And this should really not be done on the level of the method being > registered. There should be a database of "useful combinatorial maps", and > the decorator should do nothing more than adding a method to this database.
for this one does not even need a decorator put anywhere in the code... > > Actually, I can imagine that this would make life *easier* for the find_stat > people. > > 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 sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.