jacinle.utils.context#

Classes

EmptyContext

An empty context manager that does nothing.

KeyboardInterruptContext

A context manager that catches KeyboardInterrupt and does nothing.

SaverContext

Save some information before entering the context.

Class EmptyContext

class EmptyContext[source]#

Bases: object

An empty context manager that does nothing.

__init__()#
__new__(**kwargs)#

Class KeyboardInterruptContext

class KeyboardInterruptContext[source]#

Bases: object

A context manager that catches KeyboardInterrupt and does nothing.

__init__()#
__new__(**kwargs)#

Class SaverContext

class SaverContext[source]#

Bases: object

Save some information before entering the context. Restore the information after.

Inspired by: caelan/pybullet-planning

__init__()#
__new__(**kwargs)#
restore()[source]#
save()[source]#