Hello, > There is an issue left. We decided not to type some basic objects like > partitions or permutations; so you can't use object oriented syntax on > them, like in t::shape()::hook_lengths(). This has some advantages > (see our design article in SLC 2004) but whether this was a good or > bad design decision is still an open question. I'll be interested to > see how things feel if one goes the over way.
Python's typing is pretty flexible so all the objects that look like lists are pretty much just lists. Thus, I don't really have to deal explicitly with type conversions; the constructors just make sure their inputs can look like lists and that they have valid values for the object being constructed. Here are some examples: sage: p = Permutation([5,4,3,2,1]) sage: Composition(p).major_index() 40 sage: word.evaluation(p) [1, 1, 1, 1, 1] sage: Partition(p).ferrers_diagram() '*****\n****\n***\n**\n*' sage: Permutation(Composition([1,3,2])).rank() 1 > Do you have something for species / decomposable classes? This really > is the underlying engine that you want to have, in order to later get > for free the zillion combinatorial classes that can be defined > recursively, including of course all sorts of trees. You probably want > to check out the species implementation that Martin Rubey and Ralf > Hemecke are currently working on in aldor. Nope, not yet. I've just been concentrating on things that don't require me to make too many design decisions just due to other time committments. I will definitely take a look into Martin and Ralf's work though. > Out of curiosity, where are you physically? I'm going to school in the Los Angeles area now, will probably be in Iowa for the summer, and then I'm not sure where I'll be ;-] --Mike --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---