//usr/share/doc/python-kitchen-1.1.1/html/

OS : Linux

PHP Version : 7.4.33

Software : Apache/2.4.6 (CentOS) PHP/7.4.33

Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64

Disable Function : Python 2.7 Compatibility — kitchen 1.1.1 documentation

Python 2.7 Compatibility

Subprocess from Python 2.7

The subprocess module included here is a direct import from python-2.7’s python standard library. You can access it via:

>>> from kitchen.pycompat27 import subprocess

The motivation for including this module is that various API changing improvements have been made to subprocess over time. The following is a list of the known changes to subprocess with the python version they were introduced in:

New API Feature Ver
subprocess.CalledProcessError 2.5
subprocess.check_call() 2.5
subprocess.check_output() 2.7
subprocess.Popen.send_signal() 2.6
subprocess.Popen.terminate() 2.6
subprocess.Popen.kill() 2.6

See also

The stdlib subprocess documenation
For complete documentation on how to use subprocess

Table Of Contents

Previous topic

Python 2.5 Compatibility

Next topic

Exceptions

This Page