[Python-3000-checkins] r60428 - python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py

thomas.heller python-3000-checkins at python.org
Tue Jan 29 22:00:37 CET 2008


Author: thomas.heller
Date: Tue Jan 29 22:00:37 2008
New Revision: 60428

Modified:
   python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py
Log:
Add comments to clarify the tests.

Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py
==============================================================================
--- python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py	(original)
+++ python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py	Tue Jan 29 22:00:37 2008
@@ -84,6 +84,11 @@
 class aUnion(Union):
     _fields_ = [("a", c_int)]
 
+################################################################
+#
+# This table contains format strings as they look on little endian
+# machines.  The test replaces '<' with '>' on big endian machines.
+#
 native_types = [
     # type                      format                  shape           calc itemsize
 
@@ -149,6 +154,11 @@
 class LEPoint(LittleEndianStructure):
     _fields_ = [("x", c_long), ("y", c_long)]
 
+################################################################
+#
+# This table contains format strings as they really look, on both big
+# and little endian machines.
+#
 endian_types = [
     (BEPoint,                   "T{>l:x:>l:y:}",        None,           BEPoint),
     (LEPoint,                   "T{<l:x:<l:y:}",        None,           LEPoint),


More information about the Python-3000-checkins mailing list