Back to index

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

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

Detailed Description

This class represents a dll exporting functions using the
Windows stdcall calling convention.

Definition at line 372 of file

Member Function Documentation

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

Reimplemented in ctypes.test.test_cfuncs.stdcall_dll.

Definition at line 350 of file

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,
) [inherited]

Definition at line 357 of file

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

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 376 of file

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: