Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
test.test_contextlib.mycontext Class Reference
Inheritance diagram for test.test_contextlib.mycontext:
Inheritance graph
[legend]
Collaboration diagram for test.test_contextlib.mycontext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __enter__
def __exit__
def __call__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Public Attributes

 started = False
 exc = None
 catch = False

Detailed Description

Definition at line 206 of file test_contextlib.py.


Member Function Documentation

def contextlib.ContextDecorator.__call__ (   self,
  func 
) [inherited]

Definition at line 25 of file contextlib.py.

00025 
00026     def __call__(self, func):
00027         @wraps(func)
00028         def inner(*args, **kwds):
00029             with self._recreate_cm():
00030                 return func(*args, **kwds)
00031         return inner
00032 

Here is the call graph for this function:

Definition at line 211 of file test_contextlib.py.

00211 
00212     def __enter__(self):
00213         self.started = True
00214         return self

def test.test_contextlib.mycontext.__exit__ (   self,
  exc 
)

Definition at line 215 of file test_contextlib.py.

00215 
00216     def __exit__(self, *exc):
00217         self.exc = exc
00218         return self.catch
00219 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 209 of file test_contextlib.py.

Definition at line 208 of file test_contextlib.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 207 of file test_contextlib.py.


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