_ctypes (version 1.1.0)
index
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ctypes.so
Module Docs

Create and manipulate C compatible data types in Python.

 
Classes
       
_CData(__builtin__.object)
Array
PyCFuncPtr
Structure
Union

 
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 help(type(x)) 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.PyCArrayType object>
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)
__reduce__(...)
__setstate__(...)

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

Methods defined here:
__call__(...)
x.__call__(...) <==> x(...)
__nonzero__(...)
x.__nonzero__() <==> x != 0
__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.PyCFuncPtrType object>
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)
__reduce__(...)
__setstate__(...)

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

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes defined here:
__new__ = <built-in method __new__ of _ctypes.PyCStructType object>
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)
__reduce__(...)
__setstate__(...)

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

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes defined here:
__new__ = <built-in method __new__ of _ctypes.UnionType object>
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)
__reduce__(...)
__setstate__(...)

 
Functions
       
POINTER(...)
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[, offset=0]) -> 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
get_errno(...)
pointer(...)
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.
set_errno(...)
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
FUNCFLAG_USE_ERRNO = 8
FUNCFLAG_USE_LASTERROR = 16
RTLD_GLOBAL = 8
RTLD_LOCAL = 4
__version__ = '1.1.0'