commit | c877a7c201d420cd3a72acbf04ceb79b591384a2 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Fri Nov 26 11:55:48 2010 +0000 |
committer | Georg Brandl <georg@python.org> | Fri Nov 26 11:55:48 2010 +0000 |
tree | ce6597fc28efac10ffe39f0a568d932a177c1e47 | |
parent | 8449932320379dfafd3a745b553963408db897d9 [diff] [blame] |
Use PyLong_FromLong where appropriate.
diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst index c64e0a9..13a8e25 100644 --- a/Doc/extending/embedding.rst +++ b/Doc/extending/embedding.rst
@@ -209,7 +209,7 @@ { if(!PyArg_ParseTuple(args, ":numargs")) return NULL; - return Py_BuildValue("i", numargs); + return PyLong_FromLong(numargs); } static PyMethodDef EmbMethods[] = {