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

Method new_interpreter

Lib/test/test_capi/test_misc.py:2299–2302  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2297 self.addCleanup(ensure_destroyed)
2298
2299 def new_interpreter(self):
2300 id = _interpreters.create()
2301 self.add_interp_cleanup(id)
2302 return id
2303
2304 def test_conversion_int(self):
2305 convert = _testinternalcapi.normalize_interp_id

Calls 2

add_interp_cleanupMethod · 0.95
createMethod · 0.45

Tested by

no test coverage detected