On this page
os.waitid_result
Prev: os.urandom | Up: os
Rel: os.abort, os.access, os.chdir, os.chmod
Ref: docs.python.org โ os.waitid_result
Tags: #public #python3 #stdlib #os
Import
import os
from os import waitid_result
Signature & Overview
os.waitid_result(iterable=(), /)
waitid_result: Result from waitid.
Methods & Attributes
waitid_result.count(self, value, /)โ Return number of occurrences of value.waitid_result.index(self, value, start=0, stop=9223372036854775807, /)โ Return first index of value.
Usage
import os
import sys
# Return type of os.waitid() on platforms that provide it (e.g., Linux)
assert hasattr(os, "waitid_result") or sys.platform in ("darwin", "win32")
Gotchas
- Unix-only low-level process wait: For normal child process management, use
subprocess.run()/Popen.wait().
REPL Inspect
from os import waitid_result
help(waitid_result)
Linked from
Related notes
- tuts/python3/stdlib_module/os/urandom Linked here; links to this page; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/os/abort Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/access Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/chdir Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/chmod Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/chown shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/close shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/cpu_count shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/DirEntry shared tags: #os, #stdlib