Author: Armin Rigo <[email protected]>
Branch: cpyext-ext
Changeset: r83797:9ede3a4c7b4d
Date: 2016-04-20 23:31 +0200
http://bitbucket.org/pypy/pypy/changeset/9ede3a4c7b4d/
Log: Replace empty dict with NULL
diff --git a/pypy/module/cpyext/typeobject.py b/pypy/module/cpyext/typeobject.py
--- a/pypy/module/cpyext/typeobject.py
+++ b/pypy/module/cpyext/typeobject.py
@@ -278,6 +278,8 @@
args_w = space.fixedview(w_args)
w_subtype = args_w[0]
w_args = space.newtuple(args_w[1:])
+ if not space.is_true(w_kwds):
+ w_kwds = None
try:
subtype = rffi.cast(PyTypeObjectPtr, make_ref(space, w_subtype))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit