Revision: 6303
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6303&view=rev
Author: fer_perez
Date: 2008-10-22 23:50:06 +0000 (Wed, 22 Oct 2008)
Log Message:
-----------
Add a few *incomplete* notes about ctypes
Modified Paths:
--------------
trunk/py4science/workbook/wrapping.tex
Modified: trunk/py4science/workbook/wrapping.tex
===================================================================
--- trunk/py4science/workbook/wrapping.tex 2008-10-22 20:03:12 UTC (rev
6302)
+++ trunk/py4science/workbook/wrapping.tex 2008-10-22 23:50:06 UTC (rev
6303)
@@ -16,6 +16,24 @@
\lstinputlisting{examples/wrap_weave.py}
+\section{ctypes }
+
+Some quick notes about ctypes, to be finished later.
+
+
+\begin{itemize}
+
+\item \textbf{Classes}: \texttt{\_as\_parameter\_} attribute, one of: {[}int,
+ str, unicode]. A property can be used to provide custom access. This allows
+ any class to customize how it isseen if one of its instances is used as a
+ parameter in a ctypes call.
+
+\item \textbf{Functions}: when the underlying ctypes-exposed functions is
+seen on the Python side, set its \texttt{.argtypes} attribute.
+
+\end{itemize}
+
+
\section{swig }
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins