summaryrefslogtreecommitdiffstats
path: root/Doc/extending/embedding.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-11-26 11:55:48 (GMT)
committerGeorg Brandl <georg@python.org>2010-11-26 11:55:48 (GMT)
commitc877a7c201d420cd3a72acbf04ceb79b591384a2 (patch)
treece6597fc28efac10ffe39f0a568d932a177c1e47 /Doc/extending/embedding.rst
parent8449932320379dfafd3a745b553963408db897d9 (diff)
downloadcpython-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.rst2
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[] = {