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),
_______________________________________________
Python-3000-checkins mailing list
Python-3000-checkins@python.org
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to