| |
- 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
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 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_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 0x8ca22ac>
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 0x402719c0>
- 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.__init__.c_long_be'>
- __ctype_le__ = <class 'ctypes.__init__.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 0x402719c0>
- 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.__init__.c_short_be'>
- __ctype_le__ = <class 'ctypes.__init__.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 0x402719c0>
- 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.__init__.c_long_be'>
- __ctype_le__ = <class 'ctypes.__init__.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 0x402719c0>
- 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.__init__.c_byte'>
- __ctype_le__ = <class 'ctypes.__init__.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 0x402719c0>
- 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.__init__.c_ulong_be'>
- __ctype_le__ = <class 'ctypes.__init__.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 0x402719c0>
- 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.__init__.c_ulong_be'>
- __ctype_le__ = <class 'ctypes.__init__.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 0x402719c0>
- 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.__init__.c_ulong_be'>
- __ctype_le__ = <class 'ctypes.__init__.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 0x402719c0>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
Methods inherited from _ctypes._CData:
- __hash__(...)
- x.__hash__() <==> hash(x)
|
|