Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Private Attributes
ctypes.OleDLL Class Reference
Inheritance diagram for ctypes.OleDLL:
Inheritance graph
[legend]
Collaboration diagram for ctypes.OleDLL:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __repr__
def __getattr__
def __getitem__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Private Attributes

 _func_flags_ = _FUNCFLAG_STDCALL
 _func_restype_ = HRESULT

Detailed Description

This class represents a dll exporting functions using the
Windows stdcall calling convention, and returning HRESULT.
HRESULT error values are automatically raised as WindowsError
exceptions.

Definition at line 394 of file __init__.py.


Member Function Documentation

def ctypes.CDLL.__getattr__ (   self,
  name 
) [inherited]

Reimplemented in ctypes.test.test_cfuncs.stdcall_dll.

Definition at line 350 of file __init__.py.

00350 
00351     def __getattr__(self, name):
00352         if name.startswith('__') and name.endswith('__'):
00353             raise AttributeError(name)
00354         func = self.__getitem__(name)
00355         setattr(self, name, func)
00356         return func

Here is the call graph for this function:

def ctypes.CDLL.__getitem__ (   self,
  name_or_ordinal 
) [inherited]

Definition at line 357 of file __init__.py.

00357 
00358     def __getitem__(self, name_or_ordinal):
00359         func = self._FuncPtr((name_or_ordinal, self))
00360         if not isinstance(name_or_ordinal, int):
00361             func.__name__ = name_or_ordinal
00362         return func

Here is the caller graph for this function:

def ctypes.CDLL.__repr__ (   self) [inherited]

Definition at line 344 of file __init__.py.

00344 
00345     def __repr__(self):
00346         return "<%s '%s', handle %x at %x>" % \
00347                (self.__class__.__name__, self._name,
00348                 (self._handle & (_sys.maxsize*2 + 1)),
00349                 id(self) & (_sys.maxsize*2 + 1))


Member Data Documentation

Reimplemented from ctypes.CDLL.

Definition at line 400 of file __init__.py.

Reimplemented from ctypes.CDLL.

Definition at line 401 of file __init__.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


The documentation for this class was generated from the following file: