summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libctypes.tex
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-07-06 09:11:22 (GMT)
committerThomas Heller <theller@ctypes.org>2006-07-06 09:11:22 (GMT)
commitb979b35f707dfd37b2427569e2a9a47f1b0eb61e (patch)
treedb3ac113729541bd02294e882055667188db4c01 /Doc/lib/libctypes.tex
parentf40aed930a5b32971ce94be0c83f42d001b35687 (diff)
downloadcpython-b979b35f707dfd37b2427569e2a9a47f1b0eb61e.zip
cpython-b979b35f707dfd37b2427569e2a9a47f1b0eb61e.tar.gz
cpython-b979b35f707dfd37b2427569e2a9a47f1b0eb61e.tar.bz2
Document the changes in svn revision 47263, from patch #1517790.
Diffstat (limited to 'Doc/lib/libctypes.tex')
-rwxr-xr-xDoc/lib/libctypes.tex6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libctypes.tex b/Doc/lib/libctypes.tex
index db585e0..8f67ee4 100755
--- a/Doc/lib/libctypes.tex
+++ b/Doc/lib/libctypes.tex
@@ -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}