summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-01-18 22:10:38 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-01-18 22:10:38 (GMT)
commitb54797951595f69c38aebbf739e22e540e40f311 (patch)
tree1c65c7193d8a6ae05068f92bf2d85248ada981e3 /Doc/c-api
parent9a0fc97bf4a336d81160b19a52ab4f5d2e2317e0 (diff)
downloadcpython-b54797951595f69c38aebbf739e22e540e40f311.zip
cpython-b54797951595f69c38aebbf739e22e540e40f311.tar.gz
cpython-b54797951595f69c38aebbf739e22e540e40f311.tar.bz2
Merged revisions 68568,68665 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68568 | georg.brandl | 2009-01-13 02:11:07 -0600 (Tue, 13 Jan 2009) | 2 lines Fix call signature and markup. ........ r68665 | amaury.forgeotdarc | 2009-01-17 11:11:50 -0600 (Sat, 17 Jan 2009) | 3 lines #4930: Slightly cleaner (and faster) code in type creation: compare slots by address, not by name. ........
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/init.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index 95466cf..e2b2267 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -782,13 +782,13 @@ from a worker thread and the actual call than made at the earliest
convenience by the main thread where it has possession of the global
interpreter lock and can perform any Python API calls.
-.. cfunction:: void Py_AddPendingCall( int (*func)(void *), void *arg) )
+.. cfunction:: void Py_AddPendingCall( int (*func)(void *, void *arg) )
.. index:: single: Py_AddPendingCall()
Post a notification to the Python main thread. If successful,
- \*:attr`func` will be called with the argument :attr:`arg` at the earliest
- convenience. \*:attr:`func` will be called having the global interpreter
+ *func* will be called with the argument *arg* at the earliest
+ convenience. *func* will be called having the global interpreter
lock held and can thus use the full Python API and can take any
action such as setting object attributes to signal IO completion.
It must return 0 on success, or -1 signalling an exception.