[pypy-commit] cffi static-callback: Inline documentation

arigo noreply at buildbot.pypy.org
Sun Nov 15 05:16:22 EST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: static-callback
Changeset: r2404:3ce8b03837e9
Date: 2015-11-15 11:17 +0100
http://bitbucket.org/cffi/cffi/changeset/3ce8b03837e9/

Log:	Inline documentation

diff --git a/c/ffi_obj.c b/c/ffi_obj.c
--- a/c/ffi_obj.c
+++ b/c/ffi_obj.c
@@ -745,7 +745,14 @@
                              from _cffi_backend.c */
 
 PyDoc_STRVAR(ffi_call_python_doc,
-"XXX document me");
+"A decorator.  Attaches the decorated Python function to the C code\n"
+"generated for the CFFI_CALL_PYTHON function of the same name.  Calling\n"
+"the C function will then invoke the Python function.\n"
+"\n"
+"Optional arguments: 'name' is the name of the C function, if\n"
+"different from the Python function; and 'error' and 'onerror'\n"
+"handle what occurs if the Python function raises an exception\n"
+"(see the docs for details).");
 
 /* forward; see call_python.c */
 static PyObject *_ffi_call_python_decorator(PyObject *, PyObject *);


More information about the pypy-commit mailing list