| |
- __builtin__.object
-
- CDLL
-
- PyDLL
- LibraryLoader
- _ctypes._SimpleCData(_ctypes._CData)
-
- c_bool
- c_byte
- c_char
- c_char_p
- c_double
- c_float
- c_int
- c_long
- c_longdouble
- c_short
- c_ubyte
- c_uint
- c_ulong
- c_ushort
- c_void_p
- c_wchar
- c_wchar_p
- py_object
- exceptions.Exception(exceptions.BaseException)
-
- ArgumentError
class CDLL(__builtin__.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
reacquires it afterwards. |
|
Methods defined here:
- __getattr__(self, name)
- __getitem__(self, name_or_ordinal)
- __init__(self, name, mode=4, handle=None, use_errno=False, use_last_error=False)
- __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
- __builtin__.object
Methods inherited from CDLL:
- __getattr__(self, name)
- __getitem__(self, name_or_ordinal)
- __init__(self, name, mode=4, handle=None, use_errno=False, use_last_error=False)
- __repr__(self)
Data descriptors inherited from CDLL:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
|