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
Collaboration diagram for test.test_contextlib.mycontext:
Collaboration graph

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

Member Function Documentation

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

Definition at line 25 of file

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

Here is the call graph for this function:

Definition at line 211 of file

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

def test.test_contextlib.mycontext.__exit__ (   self,

Definition at line 215 of file

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

Here is the caller graph for this function:

Member Data Documentation

Definition at line 209 of file

Definition at line 208 of file

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

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