Commits

Georg Brandl  committed 8410d24

Extending example: use Py_RETURN_NONE

  • Participants
  • Parent commits 2b80566
  • Branches 3.3

Comments (0)

Files changed (1)

File Doc/extending/extending.rst

               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[] = {