Lines Matching defs:Popen
20 Popen(...): A class for flexibly executing a command in a new process
63 __all__ = ["Popen", "PIPE", "STDOUT", "call", "check_call", "getstatusoutput",
249 # On Windows we just need to close `Popen._handle` when we no longer need
250 # it, so that the kernel can free it. `Popen._handle` gets closed
251 # implicitly when the `Popen` instance is finalized (see `Handle.__del__`,
262 # This lists holds Popen instances for which the underlying process had not
264 # wait()ed for synchronously from _cleanup() when a new Popen object is
277 # This can happen if two threads create a new Popen instance.
385 The arguments are the same as for the Popen constructor. Example:
389 with Popen(*popenargs, **kwargs) as p:
424 The arguments are the same as for the Popen constructor. Example:
439 you may not also use the Popen constructor's "stdin" argument, as
525 you may not also use the Popen constructor's "stdin" argument, as
534 The other arguments are the same as for the Popen constructor.
548 with Popen(*popenargs, **kwargs) as process:
749 class Popen:
816 """Create new Popen instance."""
1534 sys.audit("subprocess.Popen", executable, args, cwd, env)
1821 sys.audit("subprocess.Popen", executable, args, cwd, env)
2172 # wrong process if the process completed, the Popen.returncode
2177 # Case 1. Thread A calls Popen.poll(), thread B calls
2178 # Popen.send_signal(). In thread A, waitpid() succeed and returns
2181 # the race condition thanks to Popen._waitpid_lock.
2184 # using Popen methods: returncode is still None is this case.
2185 # Calling Popen.poll() will set returncode to a default value,