1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
import sys
from typing import ClassVar
from .process import BaseProcess
from .util import Finalize
if sys.platform != "win32":
__all__ = ["Popen"]
class Popen:
finalizer: Finalize | None
method: ClassVar[str]
pid: int
returncode: int | None
sentinel: int # doesn't exist if os.fork in _launch returns 0
def __init__(self, process_obj: BaseProcess) -> None: ...
def duplicate_for_child(self, fd: int) -> int: ...
def poll(self, flag: int = 1) -> int | None: ...
def wait(self, timeout: float | None = None) -> int | None: ...
def terminate(self) -> None: ...
def kill(self) -> None: ...
def close(self) -> None: ...
|