Execute a child program in a new process. For a complete description of the arguments see the Python documentation. Arguments: args: A string, or a sequence of program arguments. bufsize: supplied as the buffering argument to the open() function when creating the st
| 810 | |
| 811 | |
| 812 | class Popen: |
| 813 | """ Execute a child program in a new process. |
| 814 | |
| 815 | For a complete description of the arguments see the Python documentation. |
| 816 | |
| 817 | Arguments: |
| 818 | args: A string, or a sequence of program arguments. |
| 819 | |
| 820 | bufsize: supplied as the buffering argument to the open() function when |
| 821 | creating the stdin/stdout/stderr pipe file objects |
| 822 | |
| 823 | executable: A replacement program to execute. |
| 824 | |
| 825 | stdin, stdout and stderr: These specify the executed programs' standard |
| 826 | input, standard output and standard error file handles, respectively. |
| 827 | |
| 828 | preexec_fn: (POSIX only) An object to be called in the child process |
| 829 | just before the child is executed. |
| 830 | |
| 831 | close_fds: Controls closing or inheriting of file descriptors. |
| 832 | |
| 833 | shell: If true, the command will be executed through the shell. |
| 834 | |
| 835 | cwd: Sets the current directory before the child is executed. |
| 836 | |
| 837 | env: Defines the environment variables for the new process. |
| 838 | |
| 839 | text: If true, decode stdin, stdout and stderr using the given encoding |
| 840 | (if set) or the system default otherwise. |
| 841 | |
| 842 | universal_newlines: Alias of text, provided for backwards compatibility. |
| 843 | |
| 844 | startupinfo and creationflags (Windows only) |
| 845 | |
| 846 | restore_signals (POSIX only) |
| 847 | |
| 848 | start_new_session (POSIX only) |
| 849 | |
| 850 | process_group (POSIX only) |
| 851 | |
| 852 | group (POSIX only) |
| 853 | |
| 854 | extra_groups (POSIX only) |
| 855 | |
| 856 | user (POSIX only) |
| 857 | |
| 858 | umask (POSIX only) |
| 859 | |
| 860 | pass_fds (POSIX only) |
| 861 | |
| 862 | encoding and errors: Text mode encoding and error handling to use for |
| 863 | file objects stdin, stdout and stderr. |
| 864 | |
| 865 | Attributes: |
| 866 | stdin, stdout, stderr, pid, returncode |
| 867 | """ |
| 868 | _child_created = False # Set here since __del__ checks it |
| 869 |
no outgoing calls
searching dependent graphs…