summaryrefslogtreecommitdiffstats
path: root/Doc/extending/embedding.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-11-26 18:29:10 (GMT)
committerGeorg Brandl <georg@python.org>2010-11-26 18:29:10 (GMT)
commitae26cce9a3a4c659409583b3115f1c29050b1685 (patch)
tree015e91ce2ee89ebaab5d27600c8fd235396b78b8 /Doc/extending/embedding.rst
parent67733311048573c734bbf98cebd474d308528514 (diff)
downloadcpython-ae26cce9a3a4c659409583b3115f1c29050b1685.zip
cpython-ae26cce9a3a4c659409583b3115f1c29050b1685.tar.gz
cpython-ae26cce9a3a4c659409583b3115f1c29050b1685.tar.bz2
Recorded merge of revisions 86795,86798-86799,86801 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r86795 | georg.brandl | 2010-11-26 12:55:48 +0100 (Fr, 26 Nov 2010) | 1 line Use PyLong_FromLong where appropriate. ........ r86798 | georg.brandl | 2010-11-26 13:05:48 +0100 (Fr, 26 Nov 2010) | 1 line #10420: fix docs of bdb.effective(). ........ r86799 | georg.brandl | 2010-11-26 13:08:19 +0100 (Fr, 26 Nov 2010) | 1 line Remove parenthetical remark that is confusing now that the module is not named "__builtin__" anymore. ........ r86801 | georg.brandl | 2010-11-26 13:12:14 +0100 (Fr, 26 Nov 2010) | 1 line Better example for os.system(): do not change the system time. ........
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 5c4fde8..2ea1253 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[] = {