Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
ctypes.test.test_cfuncs.stdcall_dll Class Reference
Inheritance diagram for ctypes.test.test_cfuncs.stdcall_dll:
Inheritance graph
[legend]
Collaboration diagram for ctypes.test.test_cfuncs.stdcall_dll:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __getattr__
def __repr__
def __getitem__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 198 of file test_cfuncs.py.


Member Function Documentation

Reimplemented from ctypes.CDLL.

Definition at line 199 of file test_cfuncs.py.

00199 
00200         def __getattr__(self, name):
00201             if name[:2] == '__' and name[-2:] == '__':
00202                 raise AttributeError(name)
00203             func = self._FuncPtr(("s_" + name, self))
00204             setattr(self, name, func)
00205             return func
00206 
    class stdcallCFunctions(CFunctions):
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

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: