Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes
eiffel.EiffelDescriptor Class Reference

List of all members.

Public Member Functions

def __init__
def __get__
def callmethod

Private Attributes

 _func
 _pre
 _post
 __name__
 __doc__

Detailed Description

Definition at line 71 of file eiffel.py.


Constructor & Destructor Documentation

def eiffel.EiffelDescriptor.__init__ (   self,
  func,
  pre,
  post 
)

Definition at line 73 of file eiffel.py.

00073 
00074     def __init__(self, func, pre, post):
00075         self._func = func
00076         self._pre = pre
00077         self._post = post
00078 
00079         self.__name__ = func.__name__
00080         self.__doc__ = func.__doc__

Here is the caller graph for this function:


Member Function Documentation

def eiffel.EiffelDescriptor.__get__ (   self,
  obj,
  cls 
)

Definition at line 81 of file eiffel.py.

00081 
00082     def __get__(self, obj, cls):
00083         return EiffelMethodWrapper(obj, self)

def eiffel.EiffelDescriptor.callmethod (   self,
  inst,
  args,
  kwargs 
)

Definition at line 84 of file eiffel.py.

00084 
00085     def callmethod(self, inst, args, kwargs):
00086         if self._pre:
00087             self._pre(inst, *args, **kwargs)
00088         x = self._func(inst, *args, **kwargs)
00089         if self._post:
00090             self._post(inst, x, *args, **kwargs)
00091         return x
00092 


Member Data Documentation

Definition at line 79 of file eiffel.py.

Definition at line 78 of file eiffel.py.

Definition at line 74 of file eiffel.py.

Definition at line 76 of file eiffel.py.

Definition at line 75 of file eiffel.py.


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