Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix building under 3.2 #123

Closed
denik opened this issue Sep 13, 2012 · 0 comments
Closed

fix building under 3.2 #123

denik opened this issue Sep 13, 2012 · 0 comments
Milestone

Comments

@denik
Copy link
Member

denik commented Sep 13, 2012

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

  • 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):

    product('ABCD', 'xy') --> Ax Ay Bx By Cx Cy Dx Dy

    product(range(2), repeat=3) --> 000 001 010 011 100 101 110 111

  • pools = map(tuple, args) * kwds.get('repeat', 1)
  • pools = tuple(map(tuple, args)) * kwds.get('repeat', 1)
    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!

@denik denik closed this as completed Sep 13, 2012
denik added a commit that referenced this issue Sep 13, 2012
hashbrowncipher pushed a commit to hashbrowncipher/gevent that referenced this issue Oct 20, 2018
Add --pre and testenv pip_pre options, no --pre by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant