Kaydet (Commit) b979b35f authored tarafından Thomas Heller's avatar Thomas Heller

Document the changes in svn revision 47263, from patch #1517790.

üst f40aed93
...@@ -1648,6 +1648,12 @@ argument to an object that the foreign function accepts. For ...@@ -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 example, a \class{c{\_}char{\_}p} item in the \member{argtypes} tuple will
convert a unicode string passed as argument into an byte string convert a unicode string passed as argument into an byte string
using ctypes conversion rules. 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} \end{memberdesc}
\begin{memberdesc}{errcheck} \begin{memberdesc}{errcheck}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment