MCPcopy Index your code
hub / github.com/RustPython/RustPython / Context

Class Context

Lib/test/test_exceptions.py:897–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895
896 # Inside an exception-silencing "with" block
897 class Context:
898 def __enter__(self):
899 return self
900 def __exit__ (self, exc_type, exc_value, exc_tb):
901 return True
902 obj = MyObj()
903 wr = weakref.ref(obj)
904 with Context():

Callers 1

Calls

no outgoing calls

Tested by 1