So is functionally izip exactly the same as zip but faster?
As in are the following codes the same?
A = [1,2,3]
B = ["a","b"]
from itertools import product
from itertools import izip
for X in product(B,repeat = len (A)):
k = izip(A,X)
VS
A = [1,2,3]
B = ["a","b"]
from itertools import product
for X in product(B,repeat = len (A)):
k = zip(A,X)
On Tuesday, May 12, 2015 at 7:43:10 PM UTC-5, Anton Sherwood wrote:
>
> On 2015-5-12 17:30, Phoenix wrote:
> > So what is the way to display the result of the izip ?
>
> I changed
> print izip(A,X)
> to
> for j in izip(A,X):
> print j
>
> --
> *\\* Anton Sherwood *\\* www.bendwavy.org
>
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.