Author: mattip <[email protected]>
Branch: cpyext-ext
Changeset: r83684:871731f97a39
Date: 2016-04-15 10:27 +0300
http://bitbucket.org/pypy/pypy/changeset/871731f97a39/
Log: improve debug output when WARN_ABOUT_MISSING_SLOT_FUNCTIONS is True
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
@@ -216,7 +216,8 @@
if slot_func_helper is None:
if WARN_ABOUT_MISSING_SLOT_FUNCTIONS:
- os.write(2, method_name + " defined by the type but no slot
function defined!\n")
+ os.write(2, "%s defined by %s but no slot function defined!\n"
% (
+ method_name, w_type.getname(space)))
continue
# XXX special case wrapper-functions and use a "specific" slot func
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit