MCPcopy Index your code
hub / github.com/python/cpython / Context

Class Context

Lib/test/test_exceptions.py:896–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…