You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great framework. Here is what I changed to build it under 3.2 (besides 2to3). Hope it is useful.
--- a/util/cythonpp.py Wed Apr 11 19:17:34 2012 +0400
+++ b/util/cythonpp.py Thu Apr 12 13:54:17 2012 +0200
@@ -726,7 +726,7 @@
n = len(pool)
if r > n:
return
indices = range(r)
indices = list(range(r))
yield tuple(pool[i] for i in indices)
while True:
for i in reversed(range(r)):
@@ -743,7 +743,7 @@
def product(_args, *_kwds):
Hi!
Thanks for the great framework. Here is what I changed to build it under 3.2 (besides 2to3). Hope it is useful.
--- a/util/cythonpp.py Wed Apr 11 19:17:34 2012 +0400
+++ b/util/cythonpp.py Thu Apr 12 13:54:17 2012 +0200
@@ -726,7 +726,7 @@
n = len(pool)
if r > n:
return
yield tuple(pool[i] for i in indices)
while True:
for i in reversed(range(r)):
@@ -743,7 +743,7 @@
def product(_args, *_kwds):
product('ABCD', 'xy') --> Ax Ay Bx By Cx Cy Dx Dy
product(range(2), repeat=3) --> 000 001 010 011 100 101 110 111
result = [[]]
for pool in pools:
result = [x+[y] for x in result for y in pool]
Reported by reg_gc@messir.net.
earlier comments
Denis.Bilenko said, at 2012-04-12T22:21:43.000Z:
Applied in https://bitbucket.org/denis/gevent/changeset/d658c390b7ed
Thanks!
The text was updated successfully, but these errors were encountered: