]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document the changes in svn revision 47263, from patch #1517790.
authorThomas Heller <theller@ctypes.org>
Thu, 6 Jul 2006 09:11:22 +0000 (09:11 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 6 Jul 2006 09:11:22 +0000 (09:11 +0000)
Doc/lib/libctypes.tex

index db585e0d6ae0d28051ee2ba52a72b54403a10c4d..8f67ee46f89f4977781035d0ba04ad36bd9c2850 100755 (executable)
@@ -1648,6 +1648,12 @@ argument to an object that the foreign function accepts.  For
 example, a \class{c{\_}char{\_}p} item in the \member{argtypes} tuple will
 convert a unicode string passed as argument into an byte string
 using ctypes conversion rules.
+
+New: It is now possible to put items in argtypes which are not
+ctypes types, but each item must have a \method{from{\_}param} method
+which returns a value usable as argument (integer, string, ctypes
+instance).  This allows to define adapters that can adapt custom
+objects as function parameters.
 \end{memberdesc}
 
 \begin{memberdesc}{errcheck}