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

Method interpreter_obj_from_capi

Lib/test/test_interpreters/utils.py:555–562  ·  view source on GitHub ↗
(self, config='legacy')

Source from the content-addressed store, hash-verified

553
554 @contextlib.contextmanager
555 def interpreter_obj_from_capi(self, config='legacy'):
556 with self.interpreter_from_capi(config) as interpid:
557 interp = interpreters.Interpreter(
558 interpid,
559 _whence=_interpreters.WHENCE_CAPI,
560 _ownsref=False,
561 )
562 yield interp, interpid
563
564 @contextlib.contextmanager
565 def capturing(self, script):

Callers 4

Calls 1

interpreter_from_capiMethod · 0.95

Tested by 4