[pypy-commit] pypy cpyext-nowrapper: (antocuni, ronan) Remove the 'unwrapper' wrapper for no_gc functions

rlamy pypy.commits at gmail.com
Tue Oct 3 09:24:15 EDT 2017


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: cpyext-nowrapper
Changeset: r92575:e99ce0672a27
Date: 2017-10-03 15:23 +0200
http://bitbucket.org/pypy/pypy/changeset/e99ce0672a27/

Log:	(antocuni, ronan) Remove the 'unwrapper' wrapper for no_gc functions

diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -352,6 +352,8 @@
         return wrapper
 
     def get_unwrapper(self):
+        if self.no_gc:
+            return self.callable
         names = self.argnames
         argtypesw = zip(self.argtypes,
                         [_name.startswith("w_") for _name in self.argnames])


More information about the pypy-commit mailing list