Author: Armin Rigo <[email protected]>
Branch: cpyext-pickle
Changeset: r84876:e69c12f4b550
Date: 2016-06-02 11:19 +0200
http://bitbucket.org/pypy/pypy/changeset/e69c12f4b550/

Log:    Backed out changeset 7ce632bcc863

        Unknown why, but test_ztranslation is not happy. I tried making
        test_ztranslation actually test all cpython_api functions---it is
        not, right now---but it opened another can of worms.

diff --git a/pypy/module/cpyext/__init__.py b/pypy/module/cpyext/__init__.py
--- a/pypy/module/cpyext/__init__.py
+++ b/pypy/module/cpyext/__init__.py
@@ -15,8 +15,9 @@
 
     def startup(self, space):
         space.fromcache(State).startup(space)
-        w_obj = 
space.gettypefor(pypy.module.cpyext.methodobject.W_PyCFunctionObject)
-        space.appexec([w_obj], """(methodtype):
+        method = pypy.module.cpyext.typeobject.get_new_method_def(space)
+        w_obj = pypy.module.cpyext.methodobject.W_PyCFunctionObject(space, 
method, space.wrap(''))
+        space.appexec([space.type(w_obj)], """(methodtype):
             from pickle import Pickler 
             Pickler.dispatch[methodtype] = Pickler.save_global
         """)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to