(cls, name, interpid=None, *, pipe=None, **script_kwds)
| 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): |
no test coverage detected