ctypes (version 1.0.3)
index
/usr/lib/python2.5/ctypes/__init__.py

create and manipulate C data types in Python

 
Package Contents
        __init__ -- create and manipulate C data types in Python
_endian
macholib (package) -- Enough Mach-O to make your head spin.
util
wintypes

 
Classes
       
object
CDLL
PyDLL
LibraryLoader
_SimpleCData(_ctypes._CData)
c_byte
c_byte
c_char
c_char_p
c_double
c_float
c_long
c_long
c_long
c_longlong
c_longlong
c_short
c_short
c_ubyte
c_ubyte
c_ulong
c_ulong
c_ulong
c_ulong
c_ulonglong
c_ulonglong
c_ushort
c_ushort
c_void_p
c_void_p
c_wchar
c_wchar_p
py_object
Exception(BaseException)
ArgumentError

 
class ArgumentError(Exception)
    
Method resolution order:
ArgumentError
Exception
BaseException
object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from Exception:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from Exception:
__new__ = <built-in method __new__ of type object at 0x8145ea0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)

Data descriptors inherited from BaseException:
__dict__
args
message
exception message

 
class CDLL(object)
    An instance of this class represents a loaded dll/shared
library, exporting functions using the standard C calling
convention (named 'cdecl' on Windows).
 
The exported functions can be accessed as attributes, or by
indexing with the function name.  Examples:
 
<obj>.qsort -> callable object
<obj>['qsort'] -> callable object
 
Calling the functions releases the Python GIL during the call and
reaquires it afterwards.
 
  Methods defined here:
__getattr__(self, name)
__getitem__(self, name_or_ordinal)
__init__(self, name, mode=0, handle=None)
__repr__(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class LibraryLoader(object)
     Methods defined here:
LoadLibrary(self, name)
__getattr__(self, name)
__getitem__(self, name)
__init__(self, dlltype)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class PyDLL(CDLL)
    This class represents the Python library itself.  It allows to
access Python API functions.  The GIL is not released, and
Python exceptions are handled correctly.
 
 
Method resolution order:
PyDLL
CDLL
object

Methods inherited from CDLL:
__getattr__(self, name)
__getitem__(self, name_or_ordinal)
__init__(self, name, mode=0, handle=None)
__repr__(self)

Data descriptors inherited from CDLL:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class c_byte(_SimpleCData)
    
Method resolution order:
c_byte
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_byte'>
__ctype_le__ = <class 'ctypes.c_byte'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_char(_SimpleCData)
    
Method resolution order:
c_char
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_char'>
__ctype_le__ = <class 'ctypes.c_char'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_char_p(_SimpleCData)
    
Method resolution order:
c_char_p
_SimpleCData
_ctypes._CData
object

Methods defined here:
__repr__(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
from_param = <built-in method from_param of _ctypes.SimpleType object at 0x82154f4>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_double(_SimpleCData)
    
Method resolution order:
c_double
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_double_be'>
__ctype_le__ = <class 'ctypes.c_double'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_float(_SimpleCData)
    
Method resolution order:
c_float
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_float_be'>
__ctype_le__ = <class 'ctypes.c_float'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_int = class c_long(_SimpleCData)
    
Method resolution order:
c_long
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_long_be'>
__ctype_le__ = <class 'ctypes.c_long'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_int16 = class c_short(_SimpleCData)
    
Method resolution order:
c_short
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_short_be'>
__ctype_le__ = <class 'ctypes.c_short'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_int32 = class c_long(_SimpleCData)
    
Method resolution order:
c_long
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_long_be'>
__ctype_le__ = <class 'ctypes.c_long'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_int64 = class c_longlong(_SimpleCData)
    
Method resolution order:
c_longlong
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_longlong_be'>
__ctype_le__ = <class 'ctypes.c_longlong'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_int8 = class c_byte(_SimpleCData)
    
Method resolution order:
c_byte
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_byte'>
__ctype_le__ = <class 'ctypes.c_byte'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_long(_SimpleCData)
    
Method resolution order:
c_long
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_long_be'>
__ctype_le__ = <class 'ctypes.c_long'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_longlong(_SimpleCData)
    
Method resolution order:
c_longlong
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_longlong_be'>
__ctype_le__ = <class 'ctypes.c_longlong'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_short(_SimpleCData)
    
Method resolution order:
c_short
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_short_be'>
__ctype_le__ = <class 'ctypes.c_short'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_size_t = class c_ulong(_SimpleCData)
    
Method resolution order:
c_ulong
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulong_be'>
__ctype_le__ = <class 'ctypes.c_ulong'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_ubyte(_SimpleCData)
    
Method resolution order:
c_ubyte
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ubyte'>
__ctype_le__ = <class 'ctypes.c_ubyte'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_uint = class c_ulong(_SimpleCData)
    
Method resolution order:
c_ulong
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulong_be'>
__ctype_le__ = <class 'ctypes.c_ulong'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_uint16 = class c_ushort(_SimpleCData)
    
Method resolution order:
c_ushort
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ushort_be'>
__ctype_le__ = <class 'ctypes.c_ushort'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_uint32 = class c_ulong(_SimpleCData)
    
Method resolution order:
c_ulong
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulong_be'>
__ctype_le__ = <class 'ctypes.c_ulong'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_uint64 = class c_ulonglong(_SimpleCData)
    
Method resolution order:
c_ulonglong
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulonglong_be'>
__ctype_le__ = <class 'ctypes.c_ulonglong'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_uint8 = class c_ubyte(_SimpleCData)
    
Method resolution order:
c_ubyte
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ubyte'>
__ctype_le__ = <class 'ctypes.c_ubyte'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_ulong(_SimpleCData)
    
Method resolution order:
c_ulong
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulong_be'>
__ctype_le__ = <class 'ctypes.c_ulong'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_ulonglong(_SimpleCData)
    
Method resolution order:
c_ulonglong
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ulonglong_be'>
__ctype_le__ = <class 'ctypes.c_ulonglong'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_ushort(_SimpleCData)
    
Method resolution order:
c_ushort
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__ctype_be__ = <class 'ctypes.c_ushort_be'>
__ctype_le__ = <class 'ctypes.c_ushort'>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_void_p(_SimpleCData)
    
Method resolution order:
c_void_p
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
from_param = <built-in method from_param of _ctypes.SimpleType object at 0x8215834>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
c_voidp = class c_void_p(_SimpleCData)
    
Method resolution order:
c_void_p
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
from_param = <built-in method from_param of _ctypes.SimpleType object at 0x8215834>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_wchar(_SimpleCData)
    
Method resolution order:
c_wchar
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class c_wchar_p(_SimpleCData)
    
Method resolution order:
c_wchar_p
_SimpleCData
_ctypes._CData
object

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
from_param = <built-in method from_param of _ctypes.SimpleType object at 0x8202b84>

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
class py_object(_SimpleCData)
    
Method resolution order:
py_object
_SimpleCData
_ctypes._CData
object

Methods defined here:
__repr__(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from _SimpleCData:
__ctypes_from_outparam__(...)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__nonzero__(...)
x.__nonzero__() <==> x != 0

Data descriptors inherited from _SimpleCData:
value
current value

Data and other attributes inherited from _SimpleCData:
__new__ = <built-in method __new__ of _ctypes.SimpleType object at 0x4026a9c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from _ctypes._CData:
__hash__(...)
x.__hash__() <==> hash(x)

 
Functions
       
ARRAY(typ, len)
# XXX Deprecated
CFUNCTYPE(restype, *argtypes)
CFUNCTYPE(restype, *argtypes) -> function prototype.
 
restype: the result type
argtypes: a sequence specifying the argument types
 
The function prototype can be called in different ways to create a
callable object:
 
prototype(integer address) -> foreign function
prototype(callable) -> create and return a C callable function from callable
prototype(integer index, method name[, paramflags]) -> foreign function calling a COM method
prototype((ordinal number, dll object)[, paramflags]) -> foreign function exported by ordinal
prototype((function name, dll object)[, paramflags]) -> foreign function exported by name
POINTER(cls)
PYFUNCTYPE(restype, *argtypes)
SetPointerType(pointer, cls)
# XXX Deprecated
_cast = <CFunctionType object at 0x8352094>
_check_size(typ, typecode=None)
_dlopen = dlopen(...)
dlopen(name, flag={RTLD_GLOBAL|RTLD_LOCAL}) open a shared library
_string_at = <CFunctionType object at 0x83520fc> _wstring_at = <CFunctionType object at 0x8352164>
addressof(...)
addressof(C instance) -> integer
Return the address of the C instance internal buffer
alignment(...)
alignment(C type) -> integer
alignment(C instance) -> integer
Return the alignment requirements of a C instance
byref(...)
byref(C instance) -> byref-object
Return a pointer lookalike to a C instance, only usable
as function argument
c_buffer(init, size=None)
cast(obj, typ)
create_string_buffer(init, size=None)
create_string_buffer(aString) -> character array
create_string_buffer(anInteger) -> character array
create_string_buffer(aString, anInteger) -> character array
create_unicode_buffer(init, size=None)
create_unicode_buffer(aString) -> character array
create_unicode_buffer(anInteger) -> character array
create_unicode_buffer(aString, anInteger) -> character array
memmove = <CFunctionType object at 0x4022bf9c> memset = <CFunctionType object at 0x835202c>
pointer(inst)
resize(...)
Resize the memory buffer of a ctypes instance
set_conversion_mode(...)
set_conversion_mode(encoding, errors) -> (previous-encoding, previous-errors)
 
Set the encoding and error handling ctypes uses when converting
between unicode and strings.  Returns the previous values.
sizeof(...)
sizeof(C type) -> integer
sizeof(C instance) -> integer
Return the size in bytes of a C instance
string_at(ptr, size=-1)
string_at(addr[, size]) -> string
 
Return the string at addr.
wstring_at(ptr, size=-1)
wstring_at(addr[, size]) -> string
 
Return the string at addr.

 
Data
        DEFAULT_MODE = 0
RTLD_GLOBAL = 256
RTLD_LOCAL = 0
_FUNCFLAG_CDECL = 1
_FUNCFLAG_PYTHONAPI = 4
__file__ = '/usr/lib/python2.5/ctypes/__init__.pyc'
__name__ = 'ctypes'
__path__ = ['/usr/lib/python2.5/ctypes']
__version__ = '1.0.3'
_c_functype_cache = {(None, ()): <class 'ctypes.CFunctionType'>, (None, (<class 'OpenGL.arrays.arraydatatype.GLushortArray'>,)): <class 'ctypes.CFunctionType'>, (None, (<class 'OpenGL.arrays.arraydatatype.GLuintArray'>,)): <class 'ctypes.CFunctionType'>, (None, (<class 'ctypes.c_short'>,)): <class 'ctypes.CFunctionType'>, (None, (<class 'ctypes.c_short'>, <class 'ctypes.c_short'>)): <class 'ctypes.CFunctionType'>, (None, (<class 'ctypes.c_short'>, <class 'ctypes.c_short'>, <class 'ctypes.c_short'>)): <class 'ctypes.CFunctionType'>, (None, (<class 'ctypes.c_short'>, <class 'ctypes.c_short'>, <class 'ctypes.c_short'>, <class 'ctypes.c_short'>)): <class 'ctypes.CFunctionType'>, (None, (<class 'ctypes.c_ushort'>,)): <class 'ctypes.CFunctionType'>, (None, (<class 'ctypes.c_ushort'>, <class 'ctypes.c_ushort'>, <class 'ctypes.c_ushort'>)): <class 'ctypes.CFunctionType'>, (None, (<class 'ctypes.c_ushort'>, <class 'ctypes.c_ushort'>, <class 'ctypes.c_ushort'>, <class 'ctypes.c_ushort'>)): <class 'ctypes.CFunctionType'>, ...}
_cast_addr = 1076220960
_ctypes_version = '1.0.3'
_memmove_addr = 1074683584
_memset_addr = 1074683760
_pointer_type_cache = {None: <class 'ctypes.c_void_p'>, <class 'ctypes.c_wchar'>: <class 'ctypes.LP_c_wchar'>, <class 'ctypes.c_short'>: <class 'ctypes.LP_c_short'>, <class 'ctypes.c_ushort'>: <class 'ctypes.LP_c_ushort'>, <class 'ctypes.c_long'>: <class 'ctypes.LP_c_long'>, <class 'ctypes.c_ulong'>: <class 'ctypes.LP_c_ulong'>, <class 'ctypes.c_float'>: <class 'ctypes.LP_c_float'>, <class 'ctypes.c_double'>: <class 'ctypes.LP_c_double'>, <class 'ctypes.c_longlong'>: <class 'ctypes.LP_c_longlong'>, <class 'ctypes.c_ulonglong'>: <class 'ctypes.LP_c_ulonglong'>, ...}
_string_at_addr = 1076214560
_wstring_at_addr = 1076223696
cdll = <ctypes.LibraryLoader object at 0x835146c>
pydll = <ctypes.LibraryLoader object at 0x835148c>
pythonapi = <PyDLL 'None', handle 4001c668 at 83514ac>