About 400 results
Open links in new tab
  1. subprocess — Subprocess management — Python 3.14.2 …

    1 day ago · Source code: Lib/subprocess.py The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes.

  2. Subprocesses — Python 3.14.2 documentation

    2 days ago · An example using the Process class to control a subprocess and the StreamReader class to read from its standard output. The subprocess is created by the …

  3. Logging Cookbook — Python 3.14.2 documentation

    The following example shows how, in a multi-threaded environment, logs can populated with contextual information such as, for example, request attributes handled by web applications.

  4. Transports and Protocols — Python 3.14.2 documentation

    2 days ago · An example of a subprocess protocol used to get the output of a subprocess and to wait for the subprocess exit. The subprocess is created by the loop.subprocess_exec() method:

  5. multiprocessing — Process-based parallelism — Python 3.14.2 …

    4 days ago · The following example demonstrates the common practice of defining such functions in a module so that child processes can successfully import that module. This basic example …

  6. multiprocessing.shared_memory — Shared memory for direct

    2 days ago · The following example demonstrates a practical use of the SharedMemory class with NumPy arrays, accessing the same numpy.ndarray from two distinct Python shells:

  7. Python Documentation contents — Python 3.15.0a3 documentation

    Why does Python use methods for some functionality (e.g. list.index ()) but functions for other (e.g. len (list))? Why is join () a string method instead of a list or tuple method?

  8. pty — Pseudo-terminal utilities — Python 3.14.2 documentation

    2 days ago · Example ¶ The following program acts like the Unix command script (1), using a pseudo-terminal to record all input and output of a terminal session in a “typescript”.

  9. Concurrent Execution — Python 3.9.24 documentation

    Mar 9, 2024 · Replacing Older Functions with the subprocess Module Replacing /bin/sh shell command substitution Replacing shell pipeline Replacing os.system() Replacing the os.spawn …

  10. concurrent.futures — Launching parallel tasks — Python 3.14.2 …

    2 days ago · For example, if you redirect sys.stdout in one interpreter, it will not be automatically redirected to any other interpreter. If you import a module in one interpreter, it is not …