On Sat, Feb 18, 2012 at 06:40:17PM +0100, Nicolas Borie wrote: > Le samedi 18 février 2012 à 09:29 -0800, Anne Schilling a écrit : > > Which patch is ClonableIntArray in? For me it is not defined (and I am > > hesitant to base my > > code on something not yet in sage): > > > > sage: class toto(ClonableIntArray): > > ....: def check(self): pass > > ....: > > --------------------------------------------------------------------------- > > NameError Traceback (most recent call last) > > > > /Applications/sage-5.0.beta3/devel/sage-combinat/sage/combinat/posets/<ipython > > console> in <module>() > > > > NameError: name 'ClonableIntArray' is not defined > > Hello, > > I think it is already in Sage. You just have to import it.
Exact: Ticket #8702 Datastructure for objects with prototype (clone) design pattern merged in sage-4.6.2.alpha0. You already used it a lot through #9109 Fast cython class for maps between finite sets which is the structure we use for transformation monoids (BiHecke, Hn(0), NDPF...) Cheers, Florent -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
