Update of /cvsroot/ctypes/ctypes/docs/manual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20880
Modified Files:
simple_types.txt manual.html
Log Message:
Index: manual.html
===================================================================
RCS file: /cvsroot/ctypes/ctypes/docs/manual/manual.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** manual.html 21 Mar 2006 21:17:51 -0000 1.3
--- manual.html 22 Mar 2006 07:09:10 -0000 1.4
***************
*** 307,313 ****
<li><a class="reference" href="#parameter-flags" id="id7" name="id7">Parameter flags</a></li>
<li><a class="reference" href="#com-methods-windows-only" id="id8" name="id8">COM methods (Windows only)</a></li>
</ul>
</li>
- <li><a class="reference" href="#callback-functions" id="id9" name="id9">Callback functions</a></li>
<li><a class="reference" href="#simple-types" id="id10" name="id10">Simple types</a><ul>
<li><a class="reference" href="#class-attributes-of-simple-types" id="id11" name="id11">Class attributes of simple types</a></li>
--- 307,313 ----
<li><a class="reference" href="#parameter-flags" id="id7" name="id7">Parameter flags</a></li>
<li><a class="reference" href="#com-methods-windows-only" id="id8" name="id8">COM methods (Windows only)</a></li>
+ <li><a class="reference" href="#callback-functions" id="id9" name="id9">Callback functions</a></li>
</ul>
</li>
<li><a class="reference" href="#simple-types" id="id10" name="id10">Simple types</a><ul>
<li><a class="reference" href="#class-attributes-of-simple-types" id="id11" name="id11">Class attributes of simple types</a></li>
***************
*** 592,598 ****
be the integer address of a COM interface pointer.</p>
</div>
- </div>
<div class="section">
! <h1><a class="toc-backref" href="#id9" id="callback-functions" name="callback-functions">Callback functions</a></h1>
<p>ctypes is able to create C callable functions from Python callables.
This is useful because sometimes library functions need a callback
--- 592,597 ----
be the integer address of a COM interface pointer.</p>
</div>
<div class="section">
! <h2><a class="toc-backref" href="#id9" id="callback-functions" name="callback-functions">Callback functions</a></h2>
<p>ctypes is able to create C callable functions from Python callables.
This is useful because sometimes library functions need a callback
***************
*** 620,623 ****
--- 619,623 ----
for debugging.</p>
</div>
+ </div>
<div class="section">
<h1><a class="toc-backref" href="#id10" id="simple-types" name="simple-types">Simple types</a></h1>
Index: simple_types.txt
===================================================================
RCS file: /cvsroot/ctypes/ctypes/docs/manual/simple_types.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** simple_types.txt 21 Mar 2006 21:17:51 -0000 1.3
--- simple_types.txt 22 Mar 2006 07:09:10 -0000 1.4
***************
*** 49,61 ****
``from_param``
! This is a class method (an instance method of the metaclass, to be
! exact) that is used to adapt function parameters. If a
! ``c_int`` type is specified in a function's argtypes sequence,
! ``c_int.from_param(arg)`` will be called by ctypes and the result
! will be passed to the foreign function call as a parameter.
``from_param`` usually returns an internal object that you cannot
! use in Python code - it only makes sense to pass this to foreign
! functions.
On one hand, ``from_param`` is a performance optimization - it
--- 49,61 ----
``from_param``
! This class method is used to adapt function parameters. If a type
! is specified in a function's argtypes sequence, in a function call
! the ``from_param(arg)`` method will be called with the actual
! argument, and the result will be passed to the foreign function
! call as a parameter.
``from_param`` usually returns an internal object that you cannot
! use in Python code - it only makes sense to pass this object to
! foreign functions.
On one hand, ``from_param`` is a performance optimization - it
***************
*** 75,78 ****
--- 75,84 ----
-----------------------------------
+ ``value``
+
+ Allows to get or set the current value of the object. For simple
+ types, this is always a native Python object like integer, long,
+ string, unicode, or None.
+
``_objects`` (never modify this)
***************
*** 91,100 ****
block on destruction.
- ``value``
-
- Allows to get or set the current value of the object. For simpe
- types, this is always a native Python object like integer, long,
- string, or unicode.
-
``_as_parameter_`` (readonly)
--- 97,100 ----
|