jacinle.utils.context#
Classes
An empty context manager that does nothing. |
|
A context manager that catches KeyboardInterrupt and does nothing. |
|
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