Pelokalan
Python ID
id en
Masuk
Proyek
library__subprocess.po Berkas proyek · python-docs-id-3.14 · Bahasa Indonesia
Modul PO Hanya lihat
Teks sumber — English
Terjemahan — Bahasa Indonesia
Base class for all other exceptions from this module.
Exceptions
Pengecualian
Exceptions raised in the child process, before the new program has started to execute, will be re-raised in the parent.
The most common exception raised is :exc:`OSError`. This occurs, for example, when trying to execute a non-existent file. Applications should prepare for :exc:`OSError` exceptions. Note that, when ``shell=True``, :exc:`OSError` will be raised by the child only if the selected shell itself was not found. To determine if the shell failed to find the requested application, it is necessary to check the return code or output from the subprocess.
Exceptions defined in this module all inherit from :exc:`SubprocessError`.
**Extremely Small Timeout Values**: Setting very small timeout values (such as a few milliseconds) may result in almost immediate :exc:`TimeoutExpired` exceptions because process creation and system scheduling inherently require time.