From: Georg Brandl Date: Sun, 6 Oct 2013 18:46:08 +0000 (+0200) Subject: Extending example: use Py_RETURN_NONE X-Git-Tag: v3.4.0a4~218^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a072de14be1e8cd992404f300f0104fccedecaa9;p=python Extending example: use Py_RETURN_NONE --- diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst index e7c3f335d2..a559b56748 100644 --- a/Doc/extending/extending.rst +++ b/Doc/extending/extending.rst @@ -719,9 +719,7 @@ Philbrick (philbrick@hks.com):: action, voltage); printf("-- Lovely plumage, the %s -- It's %s!\n", type, state); - Py_INCREF(Py_None); - - return Py_None; + Py_RETURN_NONE; } static PyMethodDef keywdarg_methods[] = {