Dear team,
i somehow solved my problem, but it gives rise to another question.
> how can i compute the n-fold Cartesian product of of a list?
Meanwhile i produced a callable object CP=CartesianPower(L, n) so that
sage: It = iter(CP,None)
yields an iterator for the n-fold Cartesian product of a list L.
So, it works, as long as i am in Sage.
But then i wanted to use it in a blah.spyx file. When i attached it,
it was refused to use "iter" with two arguments.
I understood that there is a python-iter (with one argument) and a
Sage-iter (with one or two arguments). But how can i import Sage's
"iter" into my blah.spyx? I didn't find out what module it is
contained in.
Yours
Simon
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---