Author: mattip <[email protected]>
Branch: cpyext-ext
Changeset: r83636:778fb79d283d
Date: 2016-04-12 21:13 +0300
http://bitbucket.org/pypy/pypy/changeset/778fb79d283d/
Log: actually call the new fcn (fijal)
diff --git a/pypy/module/cpyext/slotdefs.py b/pypy/module/cpyext/slotdefs.py
--- a/pypy/module/cpyext/slotdefs.py
+++ b/pypy/module/cpyext/slotdefs.py
@@ -497,8 +497,10 @@
@cpython_api([PyTypeObjectPtr, PyObject, PyObject], PyObject,
header=None)
@func_renamer("cpyext_%s_%s" % (name.replace('.', '_'), typedef.name))
- def slot_tp_new(space, w_type, w_args, w_kwds):
- return space.call(w_type, w_args, w_kwds)
+ def slot_tp_new(space, w_self, w_args, w_kwds):
+ args = Arguments(space, [w_self],
+ w_stararg=w_args, w_starstararg=w_kwds)
+ return space.call_args(space.get(new_fn, w_self), args)
api_func = slot_tp_new.api_func
else:
return
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit