Author: Armin Rigo <[email protected]>
Branch: cpyext-gc-support
Changeset: r80452:c120d2c5b7dd
Date: 2015-10-26 08:47 +0100
http://bitbucket.org/pypy/pypy/changeset/c120d2c5b7dd/
Log: Took me a while to figure out that the behavior we get now is
consistent with CPython's own (but not with "default")
diff --git a/pypy/module/cpyext/test/foo.c b/pypy/module/cpyext/test/foo.c
--- a/pypy/module/cpyext/test/foo.c
+++ b/pypy/module/cpyext/test/foo.c
@@ -150,6 +150,7 @@
if (v == -1 && PyErr_Occurred())
return -1;
self->foo = v;
+ return 0;
}
return PyObject_GenericSetAttr((PyObject *)self, name, value);
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit