summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-13 08:11:07 (GMT)
committerGeorg Brandl <georg@python.org>2009-01-13 08:11:07 (GMT)
commitdd958e0d288c407095791763b538e4901d46891e (patch)
treedaa5af23ffa810d2561e98e2a4ef55493ad4ff9e /Doc
parent35288c6b6c0323fd1159166c747705a1a022ad0b (diff)
downloadcpython-dd958e0d288c407095791763b538e4901d46891e.zip
cpython-dd958e0d288c407095791763b538e4901d46891e.tar.gz
cpython-dd958e0d288c407095791763b538e4901d46891e.tar.bz2
Fix call signature and markup.
Diffstat (limited to 'Doc')
-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 6ac696e..4c3540b 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -797,13 +797,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.