[pypy-commit] pypy py3.5: Fix pickling of exhauted reversed() iterators

rlamy pypy.commits at gmail.com
Wed Oct 12 11:47:52 EDT 2016


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r87731:3536ea84433f
Date: 2016-10-12 16:47 +0100
http://bitbucket.org/pypy/pypy/changeset/3536ea84433f/

Log:	Fix pickling of exhauted reversed() iterators

diff --git a/pypy/module/__builtin__/functional.py b/pypy/module/__builtin__/functional.py
--- a/pypy/module/__builtin__/functional.py
+++ b/pypy/module/__builtin__/functional.py
@@ -370,7 +370,7 @@
         else:
             return space.newtuple([
                 space.type(self),
-                space.newtuple([])])
+                space.newtuple([space.newtuple([])])])
 
     def descr___setstate__(self, space, w_state):
         self.remaining = space.int_w(w_state)


More information about the pypy-commit mailing list