Re: [sage-combinat-devel] Re: [sage-devel] cartesian products

2013-11-15 Thread Nicolas M. Thiery
On Fri, Nov 15, 2013 at 02:43:29PM -0500, Vincent Delecroix wrote: > Thanks for taking care of it. I would like cartesian products to be > smarter about iteration... especially when one of the factor is > infinite. I have a working implementation of the iterator that you can > use on the sage-combi

Re: [sage-combinat-devel] Re: [sage-devel] cartesian products

2013-11-15 Thread Vincent Delecroix
Salut Nicolas, Thanks for taking care of it. I would like cartesian products to be smarter about iteration... especially when one of the factor is infinite. I have a working implementation of the iterator that you can use on the sage-combinat misc repo. Best, Vincent 2013/11/15, Nicolas M. Thier

Re: [sage-devel] cartesian products

2013-11-15 Thread Nicolas M. Thiery
Salut Vincent, On Thu, Nov 14, 2013 at 10:43:19PM -0500, Vincent Delecroix wrote: > For me it is a bug: the behavior of cartesian_product (not > CartesianProduct) is not symmetric... > {{{ > sage: C1 = cartesian_product([FiniteEnumeratedSet('abc'),ZZ]) > The cartesian product of ({'a', 'b'