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

Method from_subinterp

Lib/test/test_import/__init__.py:305–314  ·  view source on GitHub ↗
(cls, name, interpid=None, *, pipe=None, **script_kwds)

Source from the content-addressed store, hash-verified

303
304 @classmethod
305 def from_subinterp(cls, name, interpid=None, *, pipe=None, **script_kwds):
306 if pipe is not None:
307 return cls._from_subinterp(name, interpid, pipe, script_kwds)
308 pipe = os.pipe()
309 try:
310 return cls._from_subinterp(name, interpid, pipe, script_kwds)
311 finally:
312 r, w = pipe
313 os.close(r)
314 os.close(w)
315
316 @classmethod
317 def _from_subinterp(cls, name, interpid, pipe, script_kwargs):

Callers 1

import_in_subinterpMethod · 0.80

Calls 3

_from_subinterpMethod · 0.80
pipeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected