Back to index

python3.2  3.2.2
Classes | Functions | Variables
ctypes.test.test_pep3118 Namespace Reference

Classes

class  Test
class  Point
class  PackedPoint
class  Point2
class  EmptyStruct
class  aUnion
class  Incomplete
class  Complete
class  BEPoint
class  LEPoint

Functions

def normalize

Variables

string THIS_ENDIAN = "<"
string OTHER_ENDIAN = ">"
tuple PComplete = POINTER(Complete)
list native_types
 This table contains format strings as they look on little endian machines.
list endian_types

Function Documentation

Definition at line 12 of file test_pep3118.py.

00012 
00013 def normalize(format):
00014     # Remove current endian specifier and white space from a format
00015     # string
00016     if format is None:
00017         return ""
00018     format = format.replace(OTHER_ENDIAN, THIS_ENDIAN)
00019     return re.sub(r"\s", "", format)

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Initial value:
00001 [
00002     (BEPoint,                   "T{>l:x:>l:y:}",        None,           BEPoint),
00003     (LEPoint,                   "T{<l:x:<l:y:}",        None,           LEPoint),
00004     (POINTER(BEPoint),          "&T{>l:x:>l:y:}",       None,           POINTER(BEPoint)),
00005     (POINTER(LEPoint),          "&T{<l:x:<l:y:}",       None,           POINTER(LEPoint)),
00006     ]

Definition at line 188 of file test_pep3118.py.

This table contains format strings as they look on little endian machines.

The test replaces '<' with '>' on big endian machines.

Definition at line 108 of file test_pep3118.py.

Definition at line 7 of file test_pep3118.py.

Definition at line 100 of file test_pep3118.py.

Definition at line 6 of file test_pep3118.py.