diff options
author | Georg Brandl <georg@python.org> | 2010-11-26 11:55:48 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-11-26 11:55:48 (GMT) |
commit | c877a7c201d420cd3a72acbf04ceb79b591384a2 (patch) | |
tree | ce6597fc28efac10ffe39f0a568d932a177c1e47 /Doc/extending/embedding.rst | |
parent | 8449932320379dfafd3a745b553963408db897d9 (diff) | |
download | cpython-c877a7c201d420cd3a72acbf04ceb79b591384a2.zip cpython-c877a7c201d420cd3a72acbf04ceb79b591384a2.tar.gz cpython-c877a7c201d420cd3a72acbf04ceb79b591384a2.tar.bz2 |
Use PyLong_FromLong where appropriate.
Diffstat (limited to 'Doc/extending/embedding.rst')
-rw-r--r-- | Doc/extending/embedding.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ Python extension. For example:: { if(!PyArg_ParseTuple(args, ":numargs")) return NULL; - return Py_BuildValue("i", numargs); + return PyLong_FromLong(numargs); } static PyMethodDef EmbMethods[] = { |