(cls, name, interpid=None, *, pipe=None, **script_kwds)
| 308 | |
| 309 | @classmethod |
| 310 | def from_subinterp(cls, name, interpid=None, *, pipe=None, **script_kwds): |
| 311 | if pipe is not None: |
| 312 | return cls._from_subinterp(name, interpid, pipe, script_kwds) |
| 313 | pipe = os.pipe() |
| 314 | try: |
| 315 | return cls._from_subinterp(name, interpid, pipe, script_kwds) |
| 316 | finally: |
| 317 | r, w = pipe |
| 318 | os.close(r) |
| 319 | os.close(w) |
| 320 | |
| 321 | @classmethod |
| 322 | def _from_subinterp(cls, name, interpid, pipe, script_kwargs): |
no test coverage detected