Author: Armin Rigo <[email protected]>
Branch: py3.6
Changeset: r96966:17c92b183a23
Date: 2019-07-12 14:27 +0200
http://bitbucket.org/pypy/pypy/changeset/17c92b183a23/
Log: Issue #3043
Support Py_RETURN_NOTIMPLEMENTED
diff --git a/pypy/module/cpyext/include/object.h
b/pypy/module/cpyext/include/object.h
--- a/pypy/module/cpyext/include/object.h
+++ b/pypy/module/cpyext/include/object.h
@@ -13,6 +13,8 @@
#define PY_SSIZE_T_MIN (-PY_SSIZE_T_MAX-1)
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
+#define Py_RETURN_NOTIMPLEMENTED \
+ return Py_INCREF(Py_NotImplemented), Py_NotImplemented
/*
CPython has this for backwards compatibility with really old extensions, and
now
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit