_ctypes (version 1.0.2)
index
/usr/local/lib/python2.5/lib-dynload/_ctypes.so
Module Docs

Create and manipulate C compatible data types in Python.

 
Classes
       
_CData(__builtin__.object)
Array
CFuncPtr
Structure
Union
exceptions.Exception(exceptions.BaseException)
ctypes.ArgumentError

 
class ArgumentError(exceptions.Exception)
    
Method resolution order:
ArgumentError
exceptions.Exception
exceptions.BaseException
__builtin__.object

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

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

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

Methods inherited from exceptions.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 exceptions.BaseException:
__dict__
args
message
exception message

 
class Array(_CData)
    XXX to be provided
 
 
Method resolution order:
Array
_CData
__builtin__.object

Methods defined here:
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__delslice__(...)
x.__delslice__(i, j) <==> del x[i:j]
 
Use of negative indices is not supported.
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__len__(...)
x.__len__() <==> len(x)
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
__setslice__(...)
x.__setslice__(i, j, y) <==> x[i:j]=y
 
Use  of negative indices is not supported.

Data and other attributes defined here:
__new__ = <built-in method __new__ of _ctypes.ArrayType object at 0x128ba0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

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

 
class CFuncPtr(_CData)
    Function Pointer
 
 
Method resolution order:
CFuncPtr
_CData
__builtin__.object

Methods defined here:
__call__(...)
x.__call__(...) <==> x(...)
__repr__(...)
x.__repr__() <==> repr(x)

Data descriptors defined here:
argtypes
specify the argument types
errcheck
a function to check for errors
restype
specify the result type

Data and other attributes defined here:
__new__ = <built-in method __new__ of _ctypes.CFuncPtrType object at 0x128920>
T.__new__(S, ...) -> a new object with type S, a subtype of T

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

 
class Structure(_CData)
    Structure base class
 
 
Method resolution order:
Structure
_CData
__builtin__.object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes defined here:
__new__ = <built-in method __new__ of _ctypes.StructType object at 0x1289e0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

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

 
class Union(_CData)
    Union base class
 
 
Method resolution order:
Union
_CData
__builtin__.object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes defined here:
__new__ = <built-in method __new__ of _ctypes.UnionType object at 0x128aa0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

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

 
Functions
       
PyObj_FromPtr(...)
Py_DECREF(...)
Py_INCREF(...)
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
call_cdeclfunction(...)
call_function(...)
dlclose(...)
dlclose a library
dlopen(...)
dlopen(name, flag={RTLD_GLOBAL|RTLD_LOCAL}) open a shared library
dlsym(...)
find symbol in shared library
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

 
Data
        FUNCFLAG_CDECL = 1
FUNCFLAG_PYTHONAPI = 4
RTLD_GLOBAL = 256
RTLD_LOCAL = 0
__version__ = '1.0.2'