[Python-checkins] r47265 - python/trunk/Doc/lib/libctypes.tex

thomas.heller python-checkins at python.org
Thu Jul 6 11:11:23 CEST 2006


Author: thomas.heller
Date: Thu Jul  6 11:11:22 2006
New Revision: 47265

Modified:
   python/trunk/Doc/lib/libctypes.tex
Log:
Document the changes in svn revision 47263, from patch #1517790.


Modified: python/trunk/Doc/lib/libctypes.tex
==============================================================================
--- python/trunk/Doc/lib/libctypes.tex	(original)
+++ python/trunk/Doc/lib/libctypes.tex	Thu Jul  6 11:11:22 2006
@@ -1648,6 +1648,12 @@
 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}


More information about the Python-checkins mailing list