PyDocs

Nav

Generic Operating System Services

popen

os

function (source) not WASInot Androidnot iOS
  • popen(cmd, mode='r', buffering=-1)
Open a pipe to or from command cmd. The return value is an open file object connected to the pipe, which can be read or written depending on whether mode is 'r' (default) or 'w'. The buffering argument have the same meaning as the corresponding argument to the built-in open() function. The returned file object reads or writes text strings rather than bytes.
Changed in 3.14
  • 3.14: Soft deprecated. The subprocess module is recommended instead.
0 Examples
No examples for os/popen.
See Also
No see-alsos for os/popen
0 Notes
No notes for popen