Thanks! At the end of day, I had to modify the method _element_constructor_ and now everything seems to work.
By the way, how do I know which methods have to be implemented? I looked at sage: from sage.structure.list_clone_demo import IncreasingIntArray sage: IncreasingIntArray?? sage: from sage.structure.list_clone import ClonableIntArray, ClonableList sage: ClonableIntArray?? sage: ClonableList?? and the documentation is not always very clear about this. Cheers, Anne On 2/24/12 5:34 PM, Nicolas M. Thiery wrote: > On Fri, Feb 24, 2012 at 04:50:00PM -0800, Anne Schilling wrote: >> Hmm, now yes. And then I am back to the hashable list: > >> sage: strongTableau( [[-1, -2, -3], [3]], 2, [3] ) >> ... >> /Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/combinat/k_tableau.pyc >> in transpositions_to_strongTableau(self, transeq) >> 594 we can assume that the first of these is [0,1] (although >> more generally we could consider skew strong tableaux) >> 595 """ >> --> 596 out = strongTableau(self._k,[]) > > Just a random suggestion before heading to bed. Given the example > above, isn't k supposed to be the second argument to strongTableau? > >> /Applications/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/combinat/k_tableau.pyc >> in __classcall_private__(cls, k) >> 460 >> 461 """ >> --> 462 return super(strongTableaux, cls).__classcall__(cls, k) >> 463 >> 464 def __init__( self, k ): > > Here it seems that the list above is passed down as k to > strongTableaux, and it does not like this. > > By the way, *THE* tool to debug this kind of stacktrace is the post > mortem feature of the Python debugger: > > http://docs.python.org/library/pdb.html > > Cheers, > Nicolas -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-devel@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.