Re: [sage-combinat-devel] Global options for elements set by their parents

2012-10-28 Thread Travis Scrimshaw
Hey everyone, On Sunday, October 28, 2012 2:13:07 AM UTC-7, Andrew Mathas wrote: > > Hi Nicolas, > > Not OK (this could break e.g. Symmetric Functions): >> >> sage: Partitions().options(cmp=dominance) >> > > In his patch Travis has an option for changing the default comparison > method

Re: [sage-combinat-devel] Global options for elements set by their parents

2012-10-28 Thread Vincent Delecroix
Hi, For string representation, I think that it sould be a matter of the parent via a _repr_element_ method. This method is yet used in some classes. The issue may be fixed with the modification of Element.__repr__ as def __repr__(self): if self.__custom_name: return self.__custom_name

Re: [sage-combinat-devel] revisions to dyck_word.py - suggestions for how to handle maps?

2012-10-28 Thread Christian Stump
> Christian had one way of handling this that I thought was OK, but I thought > not ideal. > D.to_permutation("Bandlow-Kilpatrick") > which is now > D.to_312_avoiding_permutation() > > and > > D.to_permutation("Krattenthaler") > which is now > D.to_132_avoiding_permutation() I do still prefer thi

Re: [sage-combinat-devel] Global options for elements set by their parents

2012-10-28 Thread Andrew Mathas
Hi Nicolas, Not OK (this could break e.g. Symmetric Functions): > > sage: Partitions().options(cmp=dominance) > In his patch Travis has an option for changing the default comparison method and I think that this would be useful. Below you also mention that be able to change the default

Re: [sage-combinat-devel] Global options for elements set by their parents

2012-10-28 Thread Nicolas M. Thiery
On Sat, Oct 27, 2012 at 09:43:37PM -0700, Andrew Mathas wrote: > To do this within the framework I am thinking of it would probably be > necessary > to add an additional _options.defaults attribute to the parent which specifies > all of the options and their defaults. +1. You can grep through th