ContextManager
public class ContextGuard extends java.lang.Object implements ContextManager
Modifier and Type | Method | Description |
---|---|---|
PyObject |
__enter__(ThreadState ts) |
|
boolean |
__exit__(ThreadState ts,
PyException exception) |
|
static ContextManager |
getManager(PyObject manager) |
|
static PyObject |
makeManager(PyObject object) |
public PyObject __enter__(ThreadState ts)
__enter__
in interface ContextManager
public boolean __exit__(ThreadState ts, PyException exception)
__exit__
in interface ContextManager
public static ContextManager getManager(PyObject manager)