Top Description Methods
org.python.core

public Interface ContextManager

Known Direct Implementers
org.python.modules.thread.PyLock, org.python.modules._threading.Condition, org.python.modules._threading.Lock, org.python.modules._threading.RLock, com.ziclix.python.sql.PyConnection, com.ziclix.python.sql.PyCursor, org.python.core.ContextGuard, org.python.core.ContextGuard.GeneratorContextManager

A PyObject that provides __enter__ and __exit__ methods for use in the with-statement. Implementing context managers can then be potentially inlined by the JVM.

Method Summary

Modifier and TypeMethod and Description
public PyObject
public boolean

Method Detail

__enter__back to summary
public PyObject __enter__(ThreadState ts)
__exit__back to summary
public boolean __exit__(ThreadState ts, PyException exception)