[Python-checkins] r47264 - python/trunk/Doc/lib/libctypes.tex
thomas.heller
python-checkins at python.org
Thu Jul 6 10:58:40 CEST 2006
Author: thomas.heller
Date: Thu Jul 6 10:58:40 2006
New Revision: 47264
Modified:
python/trunk/Doc/lib/libctypes.tex
Log:
Document the Struture and Union constructors.
Modified: python/trunk/Doc/lib/libctypes.tex
==============================================================================
--- python/trunk/Doc/lib/libctypes.tex (original)
+++ python/trunk/Doc/lib/libctypes.tex Thu Jul 6 10:58:40 2006
@@ -2389,6 +2389,13 @@
separate \member{{\_}fields{\_}} variable, the fields specified in this are
appended to the fields of the base class.
+Structure and union constructors accept both positional and
+keyword arguments. Positional arguments are used to initialize member
+fields in the same order as they are appear in \member{{\_}fields{\_}}. Keyword
+arguments in the constructor are interpreted as attribute assignments,
+so they will initialize \member{{\_}fields{\_}} with the same name, or create new
+attributes for names not present in \member{{\_}fields{\_}}.
+
\subsubsection{Arrays and pointers\label{ctypes-arrays-pointers}}
More information about the Python-checkins
mailing list