[pypy-commit] pypy py3.6: Issue #3043
arigo
pypy.commits at gmail.com
Fri Jul 12 08:28:54 EDT 2019
Author: Armin Rigo <arigo at tunes.org>
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
More information about the pypy-commit
mailing list