chunk_id
stringlengths
36
36
source
stringclasses
35 values
source_url
stringlengths
0
290
upstream_license
stringclasses
1 value
document_id
stringlengths
36
36
chunk_index
int64
0
324k
retrieved_at
stringclasses
2 values
chunker_version
stringclasses
4 values
content_hash
stringlengths
15
64
content
stringlengths
50
44.7k
namespace
stringclasses
9 values
source_name
stringclasses
35 values
raw_text
stringlengths
50
44.7k
cleaned_text
stringlengths
50
44.7k
tags
stringclasses
49 values
collection_name
stringclasses
11 values
6a84595f-8a85-46a4-baf0-d35cd66263e9
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,196
supabase-export-v2
c0b66b67b9561d0b
.. method:: Queue.empty() Return ``True`` if the queue is empty, ``False`` otherwise. If empty() returns ``True`` it doesn't guarantee that a subsequent call to put() will not block. Similarly, if empty() returns ``False`` it doesn't guarantee that a subsequent call to get() will not block.
trusted_official_docs
CPython Docs
.. method:: Queue.empty() Return ``True`` if the queue is empty, ``False`` otherwise. If empty() returns ``True`` it doesn't guarantee that a subsequent call to put() will not block. Similarly, if empty() returns ``False`` it doesn't guarantee that a subsequent call to get() will not block.
.. method:: Queue.empty() Return ``True`` if the queue is empty, ``False`` otherwise. If empty() returns ``True`` it doesn't guarantee that a subsequent call to put() will not block. Similarly, if empty() returns ``False`` it doesn't guarantee that a subsequent call to get() will not block.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7d1520c6-112d-425e-b1d8-8c80db0e05bf
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,170
supabase-export-v2
732e06338dc6e7b8
(operating like a stack). With a priority queue, the entries are kept sorted (using the :mod:`heapq` module) and the lowest valued entry is retrieved first. Internally, those three types of queues use locks to temporarily block competing threads; however, they are not designed to handle reentrancy within a thread.
trusted_official_docs
CPython Docs
(operating like a stack). With a priority queue, the entries are kept sorted (using the :mod:`heapq` module) and the lowest valued entry is retrieved first. Internally, those three types of queues use locks to temporarily block competing threads; however, they are not designed to handle reentrancy within a thread.
(operating like a stack). With a priority queue, the entries are kept sorted (using the :mod:`heapq` module) and the lowest valued entry is retrieved first. Internally, those three types of queues use locks to temporarily block competing threads; however, they are not designed to handle reentrancy within a thread.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7d70b52f-024d-4080-a538-29ef5cc11f8c
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,213
supabase-export-v2
05fd2b7808f212cb
threads. For each :meth:`get` used to fetch a task, a subsequent call to :meth:`task_done` tells the queue that the processing on the task is complete. If a :meth:`join` is currently blocking, it will resume when all items have been processed (meaning that a :meth:`task_done` call was received for every item that had...
trusted_official_docs
CPython Docs
threads. For each :meth:`get` used to fetch a task, a subsequent call to :meth:`task_done` tells the queue that the processing on the task is complete. If a :meth:`join` is currently blocking, it will resume when all items have been processed (meaning that a :meth:`task_done` call was received for every item that had...
threads. For each :meth:`get` used to fetch a task, a subsequent call to :meth:`task_done` tells the queue that the processing on the task is complete. If a :meth:`join` is currently blocking, it will resume when all items have been processed (meaning that a :meth:`task_done` call was received for every item that had...
python, official-docs, cpython, P0
Local_Trusted_Corpus
94baeceb-ebcc-4d64-9c1f-128bb8c6c978
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,200
supabase-export-v2
29e2f39ed4fb3b70
.. method:: Queue.put(item, block=True, timeout=None) Put *item* into the queue. If optional args *block* is true and *timeout* is ``None`` (the default), block if necessary until a free slot is available. If *timeout* is a positive number, it blocks at most *timeout* seconds and raises the :exc:`Full` exception if ...
trusted_official_docs
CPython Docs
.. method:: Queue.put(item, block=True, timeout=None) Put *item* into the queue. If optional args *block* is true and *timeout* is ``None`` (the default), block if necessary until a free slot is available. If *timeout* is a positive number, it blocks at most *timeout* seconds and raises the :exc:`Full` exception if ...
.. method:: Queue.put(item, block=True, timeout=None) Put *item* into the queue. If optional args *block* is true and *timeout* is ``None`` (the default), block if necessary until a free slot is available. If *timeout* is a positive number, it blocks at most *timeout* seconds and raises the :exc:`Full` exception if ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
976277c1-5cde-4829-a742-5b1b1e614f74
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,179
supabase-export-v2
536ad0e2b9fac024
once this size has been reached, until queue items are consumed. If *maxsize* is less than or equal to zero, the queue size is infinite. The lowest valued entries are retrieved first (the lowest valued entry is the one that would be returned by ``min(entries)``). A typical pattern for entries is a tuple in the form: ...
trusted_official_docs
CPython Docs
once this size has been reached, until queue items are consumed. If *maxsize* is less than or equal to zero, the queue size is infinite. The lowest valued entries are retrieved first (the lowest valued entry is the one that would be returned by ``min(entries)``). A typical pattern for entries is a tuple in the form: ...
once this size has been reached, until queue items are consumed. If *maxsize* is less than or equal to zero, the queue size is infinite. The lowest valued entries are retrieved first (the lowest valued entry is the one that would be returned by ``min(entries)``). A typical pattern for entries is a tuple in the form: ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a2ef38de-72fe-4a66-84bf-2ca37b96a27c
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,248
supabase-export-v2
e3cedf3feadbe011
.. method:: SimpleQueue.get(block=True, timeout=None) Remove and return an item from the queue. If optional args *block* is true and *timeout* is ``None`` (the default), block if necessary until an item is available. If *timeout* is a positive number, it blocks at most *timeout* seconds and raises the :exc:`Empty` ex...
trusted_official_docs
CPython Docs
.. method:: SimpleQueue.get(block=True, timeout=None) Remove and return an item from the queue. If optional args *block* is true and *timeout* is ``None`` (the default), block if necessary until an item is available. If *timeout* is a positive number, it blocks at most *timeout* seconds and raises the :exc:`Empty` ex...
.. method:: SimpleQueue.get(block=True, timeout=None) Remove and return an item from the queue. If optional args *block* is true and *timeout* is ``None`` (the default), block if necessary until an item is available. If *timeout* is a positive number, it blocks at most *timeout* seconds and raises the :exc:`Empty` ex...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a507c34e-a4a8-4212-808e-0975d54af387
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,244
supabase-export-v2
37082270b4011199
for potential low-level errors such as failure to allocate memory). The optional args *block* and *timeout* are ignored and only provided for compatibility with :meth:`Queue.put`. .. impl-detail:: This method has a C implementation which is reentrant. That is, a ``put()`` or ``get()`` call can be interrupted by anoth...
trusted_official_docs
CPython Docs
for potential low-level errors such as failure to allocate memory). The optional args *block* and *timeout* are ignored and only provided for compatibility with :meth:`Queue.put`. .. impl-detail:: This method has a C implementation which is reentrant. That is, a ``put()`` or ``get()`` call can be interrupted by anoth...
for potential low-level errors such as failure to allocate memory). The optional args *block* and *timeout* are ignored and only provided for compatibility with :meth:`Queue.put`. .. impl-detail:: This method has a C implementation which is reentrant. That is, a ``put()`` or ``get()`` call can be interrupted by anoth...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a76f266e-08a2-48f1-96b4-c05a0215b7fb
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,198
supabase-export-v2
57479e5ec480c33e
.. method:: Queue.full() Return ``True`` if the queue is full, ``False`` otherwise. If full() returns ``True`` it doesn't guarantee that a subsequent call to get() will not block. Similarly, if full() returns ``False`` it doesn't guarantee that a subsequent call to put() will not block.
trusted_official_docs
CPython Docs
.. method:: Queue.full() Return ``True`` if the queue is full, ``False`` otherwise. If full() returns ``True`` it doesn't guarantee that a subsequent call to get() will not block. Similarly, if full() returns ``False`` it doesn't guarantee that a subsequent call to put() will not block.
.. method:: Queue.full() Return ``True`` if the queue is full, ``False`` otherwise. If full() returns ``True`` it doesn't guarantee that a subsequent call to get() will not block. Similarly, if full() returns ``False`` it doesn't guarantee that a subsequent call to put() will not block.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b969a055-744d-4af4-9481-8019cb23cc1b
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,243
supabase-export-v2
a4834eafdc59cb7d
.. method:: SimpleQueue.put(item, block=True, timeout=None) Put *item* into the queue. The method never blocks and always succeeds (except for potential low-level errors such as failure to allocate memory). The optional args *block* and *timeout* are ignored and only provided for compatibility with :meth:`Queue.put`.
trusted_official_docs
CPython Docs
.. method:: SimpleQueue.put(item, block=True, timeout=None) Put *item* into the queue. The method never blocks and always succeeds (except for potential low-level errors such as failure to allocate memory). The optional args *block* and *timeout* are ignored and only provided for compatibility with :meth:`Queue.put`.
.. method:: SimpleQueue.put(item, block=True, timeout=None) Put *item* into the queue. The method never blocks and always succeeds (except for potential low-level errors such as failure to allocate memory). The optional args *block* and *timeout* are ignored and only provided for compatibility with :meth:`Queue.put`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
caaf2d49-27d8-42d4-8297-41248fbc3f4f
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,252
supabase-export-v2
add23ffb88e790a3
Class :class:`multiprocessing.Queue` A queue class for use in a multi-processing (rather than multi-threading) context. :class:`collections.deque` is an alternative implementation of unbounded queues with fast atomic :meth:`~collections.deque.append` and :meth:`~collections.deque.popleft` operations that do not requi...
trusted_official_docs
CPython Docs
Class :class:`multiprocessing.Queue` A queue class for use in a multi-processing (rather than multi-threading) context. :class:`collections.deque` is an alternative implementation of unbounded queues with fast atomic :meth:`~collections.deque.append` and :meth:`~collections.deque.popleft` operations that do not requi...
Class :class:`multiprocessing.Queue` A queue class for use in a multi-processing (rather than multi-threading) context. :class:`collections.deque` is an alternative implementation of unbounded queues with fast atomic :meth:`~collections.deque.append` and :meth:`~collections.deque.popleft` operations that do not requi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cffc63cd-b5da-4b3f-8f60-f7faaf4ee02d
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,206
supabase-export-v2
f990ac6005c1bbfd
that time. Otherwise (*block* is false), return an item if one is immediately available, else raise the :exc:`Empty` exception (*timeout* is ignored in that case). Prior to 3.0 on POSIX systems, and for all versions on Windows, if *block* is true and *timeout* is ``None``, this operation goes into an uninterruptible ...
trusted_official_docs
CPython Docs
that time. Otherwise (*block* is false), return an item if one is immediately available, else raise the :exc:`Empty` exception (*timeout* is ignored in that case). Prior to 3.0 on POSIX systems, and for all versions on Windows, if *block* is true and *timeout* is ``None``, this operation goes into an uninterruptible ...
that time. Otherwise (*block* is false), return an item if one is immediately available, else raise the :exc:`Empty` exception (*timeout* is ignored in that case). Prior to 3.0 on POSIX systems, and for all versions on Windows, if *block* is true and *timeout* is ``None``, this operation goes into an uninterruptible ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f2c3be93-5b8a-42f1-acd3-d53130f6f4d0
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,172
supabase-export-v2
14222562e35ca3f7
In addition, the module implements a "simple" :abbr:`FIFO (first-in, first-out)` queue type, :class:`SimpleQueue`, whose specific implementation provides additional guarantees in exchange for the smaller functionality. The :mod:`!queue` module defines the following classes and exceptions:
trusted_official_docs
CPython Docs
In addition, the module implements a "simple" :abbr:`FIFO (first-in, first-out)` queue type, :class:`SimpleQueue`, whose specific implementation provides additional guarantees in exchange for the smaller functionality. The :mod:`!queue` module defines the following classes and exceptions:
In addition, the module implements a "simple" :abbr:`FIFO (first-in, first-out)` queue type, :class:`SimpleQueue`, whose specific implementation provides additional guarantees in exchange for the smaller functionality. The :mod:`!queue` module defines the following classes and exceptions:
python, official-docs, cpython, P0
Local_Trusted_Corpus
f4c5f9ed-49e5-4eda-8f98-10155f470ac9
CPython Docs
file://datasets/cpython/Doc/library/queue.rst
unknown
06ce5e6d-dff0-4a4d-9bc2-27ed7fe64dac
24,214
supabase-export-v2
3bafd0a8765de1d5
will resume when all items have been processed (meaning that a :meth:`task_done` call was received for every item that had been :meth:`put` into the queue). Raises a :exc:`ValueError` if called more times than there were items placed in the queue.
trusted_official_docs
CPython Docs
will resume when all items have been processed (meaning that a :meth:`task_done` call was received for every item that had been :meth:`put` into the queue). Raises a :exc:`ValueError` if called more times than there were items placed in the queue.
will resume when all items have been processed (meaning that a :meth:`task_done` call was received for every item that had been :meth:`put` into the queue). Raises a :exc:`ValueError` if called more times than there were items placed in the queue.
python, official-docs, cpython, P0
Local_Trusted_Corpus
00dc10e4-9fe6-4bdb-bed3-1079a57ef7af
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,523
supabase-export-v2
d151f275820ba4bd
**handle_list** Sequence of handles that will be inherited. *close_fds* must be true if non-empty. The handles must be temporarily made inheritable by :func:`os.set_handle_inheritable` when passed to the :class:`Popen` constructor, else :class:`OSError` will be raised with Windows error ``ERROR_INVALID_PARAMETER`` (...
trusted_official_docs
CPython Docs
**handle_list** Sequence of handles that will be inherited. *close_fds* must be true if non-empty. The handles must be temporarily made inheritable by :func:`os.set_handle_inheritable` when passed to the :class:`Popen` constructor, else :class:`OSError` will be raised with Windows error ``ERROR_INVALID_PARAMETER`` (...
**handle_list** Sequence of handles that will be inherited. *close_fds* must be true if non-empty. The handles must be temporarily made inheritable by :func:`os.set_handle_inheritable` when passed to the :class:`Popen` constructor, else :class:`OSError` will be raised with Windows error ``ERROR_INVALID_PARAMETER`` (...
python, official-docs, cpython, P0
Local_Trusted_Corpus
02466d65-5e9e-4f97-ab46-9e69f6c697d5
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,360
supabase-export-v2
c14559911718f3be
Popen(["/usr/bin/git", "commit", "-m", "Fixes a bug."]) On POSIX, if *args* is a string, the string is interpreted as the name or path of the program to execute. However, this can only be done if not passing arguments to the program.
trusted_official_docs
CPython Docs
Popen(["/usr/bin/git", "commit", "-m", "Fixes a bug."]) On POSIX, if *args* is a string, the string is interpreted as the name or path of the program to execute. However, this can only be done if not passing arguments to the program.
Popen(["/usr/bin/git", "commit", "-m", "Fixes a bug."]) On POSIX, if *args* is a string, the string is interpreted as the name or path of the program to execute. However, this can only be done if not passing arguments to the program.
python, official-docs, cpython, P0
Local_Trusted_Corpus
04b56464-dde4-404a-9c51-21ccbae9c0e5
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,383
supabase-export-v2
8599e21c7a7f04fe
Additionally, *stderr* can be :data:`STDOUT`, which indicates that the stderr data from the applications should be captured into the same file handle as for *stdout*. If *preexec_fn* is set to a callable object, this object will be called in the child process just before the child is executed. (POSIX only)
trusted_official_docs
CPython Docs
Additionally, *stderr* can be :data:`STDOUT`, which indicates that the stderr data from the applications should be captured into the same file handle as for *stdout*. If *preexec_fn* is set to a callable object, this object will be called in the child process just before the child is executed. (POSIX only)
Additionally, *stderr* can be :data:`STDOUT`, which indicates that the stderr data from the applications should be captured into the same file handle as for *stdout*. If *preexec_fn* is set to a callable object, this object will be called in the child process just before the child is executed. (POSIX only)
python, official-docs, cpython, P0
Local_Trusted_Corpus
04f0a9a4-601f-4ca7-915f-bbf0b9475c67
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,635
supabase-export-v2
535bba3a9771a805
The ``p1.stdout.close()`` call after starting the p2 is important in order for p1 to receive a SIGPIPE if p2 exits before p1. Alternatively, for trusted input, the shell's own pipeline support may still be used directly:
trusted_official_docs
CPython Docs
The ``p1.stdout.close()`` call after starting the p2 is important in order for p1 to receive a SIGPIPE if p2 exits before p1. Alternatively, for trusted input, the shell's own pipeline support may still be used directly:
The ``p1.stdout.close()`` call after starting the p2 is important in order for p1 to receive a SIGPIPE if p2 exits before p1. Alternatively, for trusted input, the shell's own pipeline support may still be used directly:
python, official-docs, cpython, P0
Local_Trusted_Corpus
0819a66b-c14e-4f3f-8a7a-a06fc8464335
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,395
supabase-export-v2
c30035ad3b7c0a87
is an optional sequence of file descriptors to keep open between the parent and child. Providing any *pass_fds* forces *close_fds* to be :const:`True`. (POSIX only) .. versionchanged:: 3.2 The *pass_fds* parameter was added.
trusted_official_docs
CPython Docs
is an optional sequence of file descriptors to keep open between the parent and child. Providing any *pass_fds* forces *close_fds* to be :const:`True`. (POSIX only) .. versionchanged:: 3.2 The *pass_fds* parameter was added.
is an optional sequence of file descriptors to keep open between the parent and child. Providing any *pass_fds* forces *close_fds* to be :const:`True`. (POSIX only) .. versionchanged:: 3.2 The *pass_fds* parameter was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0931c9b1-3080-4964-a930-6b566f0467ff
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,611
supabase-export-v2
797b3e38828cf73c
the output data may depend on the command being invoked, so the decoding to text will often need to be handled at the application level. This behaviour may be overridden by setting *text*, *encoding*, *errors*, or *universal_newlines* to ``True`` as described in :ref:`frequently-used-arguments` and :func:`run`.
trusted_official_docs
CPython Docs
the output data may depend on the command being invoked, so the decoding to text will often need to be handled at the application level. This behaviour may be overridden by setting *text*, *encoding*, *errors*, or *universal_newlines* to ``True`` as described in :ref:`frequently-used-arguments` and :func:`run`.
the output data may depend on the command being invoked, so the decoding to text will often need to be handled at the application level. This behaviour may be overridden by setting *text*, *encoding*, *errors*, or *universal_newlines* to ``True`` as described in :ref:`frequently-used-arguments` and :func:`run`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
09f5e5ff-9485-49c4-b35d-8508061102a4
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,659
supabase-export-v2
68047037acc53e72
Legacy Shell Invocation Functions --------------------------------- This module also provides the following legacy functions from the 2.x ``commands`` module. These operations implicitly invoke the system shell and none of the guarantees described above regarding security and exception handling consistency are valid fo...
trusted_official_docs
CPython Docs
Legacy Shell Invocation Functions --------------------------------- This module also provides the following legacy functions from the 2.x ``commands`` module. These operations implicitly invoke the system shell and none of the guarantees described above regarding security and exception handling consistency are valid fo...
Legacy Shell Invocation Functions --------------------------------- This module also provides the following legacy functions from the 2.x ``commands`` module. These operations implicitly invoke the system shell and none of the guarantees described above regarding security and exception handling consistency are valid fo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a17ac5d-634a-4c66-acec-12b8988c55d3
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,264
supabase-export-v2
c10f3cf2844502dc
Using the :mod:`!subprocess` Module ----------------------------------- The recommended approach to invoking subprocesses is to use the :func:`run` function for all use cases it can handle. For more advanced use cases, the underlying :class:`Popen` interface can be used directly.
trusted_official_docs
CPython Docs
Using the :mod:`!subprocess` Module ----------------------------------- The recommended approach to invoking subprocesses is to use the :func:`run` function for all use cases it can handle. For more advanced use cases, the underlying :class:`Popen` interface can be used directly.
Using the :mod:`!subprocess` Module ----------------------------------- The recommended approach to invoking subprocesses is to use the :func:`run` function for all use cases it can handle. For more advanced use cases, the underlying :class:`Popen` interface can be used directly.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a6f9b34-dfc9-40aa-9b4e-5c3a523aa0cd
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,466
supabase-export-v2
f97cee2fab788d72
no data should be sent to the child. If streams were opened in text mode, *input* must be a string. Otherwise, it must be bytes. :meth:`communicate` returns a tuple ``(stdout_data, stderr_data)``. The data will be strings if streams were opened in text mode; otherwise, bytes.
trusted_official_docs
CPython Docs
no data should be sent to the child. If streams were opened in text mode, *input* must be a string. Otherwise, it must be bytes. :meth:`communicate` returns a tuple ``(stdout_data, stderr_data)``. The data will be strings if streams were opened in text mode; otherwise, bytes.
no data should be sent to the child. If streams were opened in text mode, *input* must be a string. Otherwise, it must be bytes. :meth:`communicate` returns a tuple ``(stdout_data, stderr_data)``. The data will be strings if streams were opened in text mode; otherwise, bytes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0d71175c-5d2a-4a41-a342-847ad31c4185
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,685
supabase-export-v2
9305dfcd1f1f29e0
1. Arguments are delimited by white space, which is either a space or a tab. 2. A string surrounded by double quotation marks is interpreted as a single argument, regardless of white space contained within. A quoted string can be embedded in an argument.
trusted_official_docs
CPython Docs
1. Arguments are delimited by white space, which is either a space or a tab. 2. A string surrounded by double quotation marks is interpreted as a single argument, regardless of white space contained within. A quoted string can be embedded in an argument.
1. Arguments are delimited by white space, which is either a space or a tab. 2. A string surrounded by double quotation marks is interpreted as a single argument, regardless of white space contained within. A quoted string can be embedded in an argument.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0d8c20a6-128a-4428-b2c7-dc4d140049b7
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,429
supabase-export-v2
62ed999e2ca4e8d1
Popen objects are supported as context managers via the :keyword:`with` statement: on exit, standard file descriptors are closed, and the process is waited for. :: with Popen(["ifconfig"], stdout=PIPE) as proc: log.write(proc.stdout.read())
trusted_official_docs
CPython Docs
Popen objects are supported as context managers via the :keyword:`with` statement: on exit, standard file descriptors are closed, and the process is waited for. :: with Popen(["ifconfig"], stdout=PIPE) as proc: log.write(proc.stdout.read())
Popen objects are supported as context managers via the :keyword:`with` statement: on exit, standard file descriptors are closed, and the process is waited for. :: with Popen(["ifconfig"], stdout=PIPE) as proc: log.write(proc.stdout.read())
python, official-docs, cpython, P0
Local_Trusted_Corpus
0de08417-659a-40b2-88bb-4a0cd3d63c0d
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,396
supabase-export-v2
732b52110e973c8a
.. versionchanged:: 3.2 The *pass_fds* parameter was added. If *cwd* is not ``None``, the function changes the working directory to *cwd* before executing the child. *cwd* can be a string, bytes or :term:`path-like <path-like object>` object. On POSIX, the function looks for *executable* (or for the first item in *a...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.2 The *pass_fds* parameter was added. If *cwd* is not ``None``, the function changes the working directory to *cwd* before executing the child. *cwd* can be a string, bytes or :term:`path-like <path-like object>` object. On POSIX, the function looks for *executable* (or for the first item in *a...
.. versionchanged:: 3.2 The *pass_fds* parameter was added. If *cwd* is not ``None``, the function changes the working directory to *cwd* before executing the child. *cwd* can be a string, bytes or :term:`path-like <path-like object>` object. On POSIX, the function looks for *executable* (or for the first item in *a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
10e06d68-e84f-452a-8e75-22c85d394a04
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,397
supabase-export-v2
9bb2c98e26168380
On POSIX, the function looks for *executable* (or for the first item in *args*) relative to *cwd* if the executable path is a relative path. .. versionchanged:: 3.6 *cwd* parameter accepts a :term:`path-like object` on POSIX.
trusted_official_docs
CPython Docs
On POSIX, the function looks for *executable* (or for the first item in *args*) relative to *cwd* if the executable path is a relative path. .. versionchanged:: 3.6 *cwd* parameter accepts a :term:`path-like object` on POSIX.
On POSIX, the function looks for *executable* (or for the first item in *args*) relative to *cwd* if the executable path is a relative path. .. versionchanged:: 3.6 *cwd* parameter accepts a :term:`path-like object` on POSIX.
python, official-docs, cpython, P0
Local_Trusted_Corpus
119fca39-4efc-466d-9244-685fc3129551
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,644
supabase-export-v2
7668995bce707f36
The :func:`os.system` function ignores SIGINT and SIGQUIT signals while the command is running, but the caller must do this separately when using the :mod:`!subprocess` module. A more realistic example would look like this::
trusted_official_docs
CPython Docs
The :func:`os.system` function ignores SIGINT and SIGQUIT signals while the command is running, but the caller must do this separately when using the :mod:`!subprocess` module. A more realistic example would look like this::
The :func:`os.system` function ignores SIGINT and SIGQUIT signals while the command is running, but the caller must do this separately when using the :mod:`!subprocess` module. A more realistic example would look like this::
python, official-docs, cpython, P0
Local_Trusted_Corpus
1316e8ca-a38f-4647-80e6-a28585e4b35f
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,687
supabase-export-v2
7ea737e6a0a3ff0b
3. A double quotation mark preceded by a backslash is interpreted as a literal double quotation mark. 4. Backslashes are interpreted literally, unless they immediately precede a double quotation mark.
trusted_official_docs
CPython Docs
3. A double quotation mark preceded by a backslash is interpreted as a literal double quotation mark. 4. Backslashes are interpreted literally, unless they immediately precede a double quotation mark.
3. A double quotation mark preceded by a backslash is interpreted as a literal double quotation mark. 4. Backslashes are interpreted literally, unless they immediately precede a double quotation mark.
python, official-docs, cpython, P0
Local_Trusted_Corpus
16cf232b-14a7-4410-8568-984d763f4d01
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,434
supabase-export-v2
43b51f0b4e1f1320
.. versionchanged:: 3.6 Popen destructor now emits a :exc:`ResourceWarning` warning if the child process is still running. .. versionchanged:: 3.8 Popen can use :func:`os.posix_spawn` in some cases for better performance. On Windows Subsystem for Linux and QEMU User Emulation, Popen constructor using :func:`os.posix...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.6 Popen destructor now emits a :exc:`ResourceWarning` warning if the child process is still running. .. versionchanged:: 3.8 Popen can use :func:`os.posix_spawn` in some cases for better performance. On Windows Subsystem for Linux and QEMU User Emulation, Popen constructor using :func:`os.posix...
.. versionchanged:: 3.6 Popen destructor now emits a :exc:`ResourceWarning` warning if the child process is still running. .. versionchanged:: 3.8 Popen can use :func:`os.posix_spawn` in some cases for better performance. On Windows Subsystem for Linux and QEMU User Emulation, Popen constructor using :func:`os.posix...
python, official-docs, cpython, P0
Local_Trusted_Corpus
170e4625-bf67-4255-959f-f8651daad32f
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,468
supabase-export-v2
74561c0c742d149d
create the Popen object with ``stdin=PIPE``. Similarly, to get anything other than ``None`` in the result tuple, you need to give ``stdout=PIPE`` and/or ``stderr=PIPE`` too. If the process does not terminate after *timeout* seconds, a :exc:`TimeoutExpired` exception will be raised. Catching this exception and retryin...
trusted_official_docs
CPython Docs
create the Popen object with ``stdin=PIPE``. Similarly, to get anything other than ``None`` in the result tuple, you need to give ``stdout=PIPE`` and/or ``stderr=PIPE`` too. If the process does not terminate after *timeout* seconds, a :exc:`TimeoutExpired` exception will be raised. Catching this exception and retryin...
create the Popen object with ``stdin=PIPE``. Similarly, to get anything other than ``None`` in the result tuple, you need to give ``stdout=PIPE`` and/or ``stderr=PIPE`` too. If the process does not terminate after *timeout* seconds, a :exc:`TimeoutExpired` exception will be raised. Catching this exception and retryin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
18d9835f-8060-4b2b-ac90-56c9636796d2
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,277
supabase-export-v2
d41199643d002eae
>>> subprocess.run("exit 1", shell=True, check=True) Traceback (most recent call last): ... subprocess.CalledProcessError: Command 'exit 1' returned non-zero exit status 1 >>> subprocess.run(["ls", "-l", "/dev/null"], capture_output=True) CompletedProcess(args=['ls', '-l', '/dev/null'], returncode=0, stdout=b'crw-rw-...
trusted_official_docs
CPython Docs
>>> subprocess.run("exit 1", shell=True, check=True) Traceback (most recent call last): ... subprocess.CalledProcessError: Command 'exit 1' returned non-zero exit status 1 >>> subprocess.run(["ls", "-l", "/dev/null"], capture_output=True) CompletedProcess(args=['ls', '-l', '/dev/null'], returncode=0, stdout=b'crw-rw-...
>>> subprocess.run("exit 1", shell=True, check=True) Traceback (most recent call last): ... subprocess.CalledProcessError: Command 'exit 1' returned non-zero exit status 1 >>> subprocess.run(["ls", "-l", "/dev/null"], capture_output=True) CompletedProcess(args=['ls', '-l', '/dev/null'], returncode=0, stdout=b'crw-rw-...
python, official-docs, cpython, P0
Local_Trusted_Corpus
198827c2-7653-4f89-bf21-261dd41f6c5f
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,680
supabase-export-v2
733ba9f46d42d82f
means that even when specifying a timeout, you are not guaranteed to see a timeout exception until at least after however long process creation takes. 2. **Extremely Small Timeout Values**: Setting very small timeout values (such as a few milliseconds) may result in almost immediate :exc:`TimeoutExpired` exceptions be...
trusted_official_docs
CPython Docs
means that even when specifying a timeout, you are not guaranteed to see a timeout exception until at least after however long process creation takes. 2. **Extremely Small Timeout Values**: Setting very small timeout values (such as a few milliseconds) may result in almost immediate :exc:`TimeoutExpired` exceptions be...
means that even when specifying a timeout, you are not guaranteed to see a timeout exception until at least after however long process creation takes. 2. **Extremely Small Timeout Values**: Setting very small timeout values (such as a few milliseconds) may result in almost immediate :exc:`TimeoutExpired` exceptions be...
python, official-docs, cpython, P0
Local_Trusted_Corpus
19dd9c61-a8da-4ae9-bfc4-10b1d44113ab
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,499
supabase-export-v2
69e7edd631bb1ea8
return code. Initially ``None``, :attr:`returncode` is set by a call to the :meth:`poll`, :meth:`wait`, or :meth:`communicate` methods if they detect that the process has terminated. A ``None`` value indicates that the process hadn't yet terminated at the time of the last method call.
trusted_official_docs
CPython Docs
return code. Initially ``None``, :attr:`returncode` is set by a call to the :meth:`poll`, :meth:`wait`, or :meth:`communicate` methods if they detect that the process has terminated. A ``None`` value indicates that the process hadn't yet terminated at the time of the last method call.
return code. Initially ``None``, :attr:`returncode` is set by a call to the :meth:`poll`, :meth:`wait`, or :meth:`communicate` methods if they detect that the process has terminated. A ``None`` value indicates that the process hadn't yet terminated at the time of the last method call.
python, official-docs, cpython, P0
Local_Trusted_Corpus
19ed8b8a-7f37-445b-9951-53676000787f
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,400
supabase-export-v2
74d6f80d8d9aa236
.. versionchanged:: 3.8 *cwd* parameter accepts a bytes object on Windows. If *restore_signals* is true (the default) all signals that Python has set to SIG_IGN are restored to SIG_DFL in the child process before the exec. Currently this includes the SIGPIPE, SIGXFZ and SIGXFSZ signals. (POSIX only)
trusted_official_docs
CPython Docs
.. versionchanged:: 3.8 *cwd* parameter accepts a bytes object on Windows. If *restore_signals* is true (the default) all signals that Python has set to SIG_IGN are restored to SIG_DFL in the child process before the exec. Currently this includes the SIGPIPE, SIGXFZ and SIGXFSZ signals. (POSIX only)
.. versionchanged:: 3.8 *cwd* parameter accepts a bytes object on Windows. If *restore_signals* is true (the default) all signals that Python has set to SIG_IGN are restored to SIG_DFL in the child process before the exec. Currently this includes the SIGPIPE, SIGXFZ and SIGXFSZ signals. (POSIX only)
python, official-docs, cpython, P0
Local_Trusted_Corpus
1a18afa8-eecf-4e85-a099-b6f7c55b433e
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,267
supabase-export-v2
d9ea70e992ee4ccc
Run the command described by *args*. Wait for command to complete, then return a :class:`CompletedProcess` instance. The arguments shown above are merely the most common ones, described below in :ref:`frequently-used-arguments` (hence the use of keyword-only notation in the abbreviated signature). The full function s...
trusted_official_docs
CPython Docs
Run the command described by *args*. Wait for command to complete, then return a :class:`CompletedProcess` instance. The arguments shown above are merely the most common ones, described below in :ref:`frequently-used-arguments` (hence the use of keyword-only notation in the abbreviated signature). The full function s...
Run the command described by *args*. Wait for command to complete, then return a :class:`CompletedProcess` instance. The arguments shown above are merely the most common ones, described below in :ref:`frequently-used-arguments` (hence the use of keyword-only notation in the abbreviated signature). The full function s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b0b94e3-bc63-4698-a3ae-454fe4839397
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,458
supabase-export-v2
aa155048782bf5b6
When ``timeout`` is not ``None`` and the platform supports it, an efficient event-driven mechanism is used to wait for process termination: - Linux >= 5.3 uses :func:`os.pidfd_open` + :func:`select.poll` - macOS and other BSD variants use :func:`select.kqueue` + ``KQ_FILTER_PROC`` + ``KQ_NOTE_EXIT`` - Windows uses `...
trusted_official_docs
CPython Docs
When ``timeout`` is not ``None`` and the platform supports it, an efficient event-driven mechanism is used to wait for process termination: - Linux >= 5.3 uses :func:`os.pidfd_open` + :func:`select.poll` - macOS and other BSD variants use :func:`select.kqueue` + ``KQ_FILTER_PROC`` + ``KQ_NOTE_EXIT`` - Windows uses `...
When ``timeout`` is not ``None`` and the platform supports it, an efficient event-driven mechanism is used to wait for process termination: - Linux >= 5.3 uses :func:`os.pidfd_open` + :func:`select.poll` - macOS and other BSD variants use :func:`select.kqueue` + ``KQ_FILTER_PROC`` + ``KQ_NOTE_EXIT`` - Windows uses `...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1c6062bb-01f1-408a-b6b8-116c24845f6d
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,358
supabase-export-v2
dfd93fde6afd31f8
*cwd* does not override the current working directory and *env* cannot override the ``PATH`` environment variable. Using a full path avoids all of these variations. An example of passing some arguments to an external program as a sequence is::
trusted_official_docs
CPython Docs
*cwd* does not override the current working directory and *env* cannot override the ``PATH`` environment variable. Using a full path avoids all of these variations. An example of passing some arguments to an external program as a sequence is::
*cwd* does not override the current working directory and *env* cannot override the ``PATH`` environment variable. Using a full path avoids all of these variations. An example of passing some arguments to an external program as a sequence is::
python, official-docs, cpython, P0
Local_Trusted_Corpus
1de76015-5d40-4f32-85e4-ed5c562147e8
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,568
supabase-export-v2
cb7dd0399c47a717
.. data:: REALTIME_PRIORITY_CLASS A :class:`Popen` ``creationflags`` parameter to specify that a new process will have realtime priority. You should almost never use REALTIME_PRIORITY_CLASS, because this interrupts system threads that manage mouse input, keyboard input, and background disk flushing. This class can b...
trusted_official_docs
CPython Docs
.. data:: REALTIME_PRIORITY_CLASS A :class:`Popen` ``creationflags`` parameter to specify that a new process will have realtime priority. You should almost never use REALTIME_PRIORITY_CLASS, because this interrupts system threads that manage mouse input, keyboard input, and background disk flushing. This class can b...
.. data:: REALTIME_PRIORITY_CLASS A :class:`Popen` ``creationflags`` parameter to specify that a new process will have realtime priority. You should almost never use REALTIME_PRIORITY_CLASS, because this interrupts system threads that manage mouse input, keyboard input, and background disk flushing. This class can b...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1e5d57d0-defa-4c04-975a-e6b64b1b56a3
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,606
supabase-export-v2
11fb7bbcfa5074a6
Run command with arguments and return its output. If the return code was non-zero it raises a :exc:`CalledProcessError`. The :exc:`CalledProcessError` object will have the return code in the :attr:`~CalledProcessError.returncode` attribute and any output in the :attr:`~CalledProcessError.output` attribute.
trusted_official_docs
CPython Docs
Run command with arguments and return its output. If the return code was non-zero it raises a :exc:`CalledProcessError`. The :exc:`CalledProcessError` object will have the return code in the :attr:`~CalledProcessError.returncode` attribute and any output in the :attr:`~CalledProcessError.output` attribute.
Run command with arguments and return its output. If the return code was non-zero it raises a :exc:`CalledProcessError`. The :exc:`CalledProcessError` object will have the return code in the :attr:`~CalledProcessError.returncode` attribute and any output in the :attr:`~CalledProcessError.output` attribute.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1f325faf-8a23-4f80-9f74-90c653d0ee7c
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,394
supabase-export-v2
a8682e4081765192
*close_fds* was changed from :const:`False` to :const:`True` when redirecting the standard handles. It's now possible to set *close_fds* to :const:`True` when redirecting the standard handles. *pass_fds* is an optional sequence of file descriptors to keep open between the parent and child. Providing any *pass_fds* for...
trusted_official_docs
CPython Docs
*close_fds* was changed from :const:`False` to :const:`True` when redirecting the standard handles. It's now possible to set *close_fds* to :const:`True` when redirecting the standard handles. *pass_fds* is an optional sequence of file descriptors to keep open between the parent and child. Providing any *pass_fds* for...
*close_fds* was changed from :const:`False` to :const:`True` when redirecting the standard handles. It's now possible to set *close_fds* to :const:`True` when redirecting the standard handles. *pass_fds* is an optional sequence of file descriptors to keep open between the parent and child. Providing any *pass_fds* for...
python, official-docs, cpython, P0
Local_Trusted_Corpus
24f93f11-85d7-4575-87ae-451006dec3a6
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,406
supabase-export-v2
9519555fecb7a3cf
.. availability:: POSIX .. versionchanged:: 3.11 *process_group* was added. If *group* is not ``None``, the setregid() system call will be made in the child process prior to the execution of the subprocess. If the provided value is a string, it will be looked up via :func:`grp.getgrnam` and the value in ``gr_gid`` w...
trusted_official_docs
CPython Docs
.. availability:: POSIX .. versionchanged:: 3.11 *process_group* was added. If *group* is not ``None``, the setregid() system call will be made in the child process prior to the execution of the subprocess. If the provided value is a string, it will be looked up via :func:`grp.getgrnam` and the value in ``gr_gid`` w...
.. availability:: POSIX .. versionchanged:: 3.11 *process_group* was added. If *group* is not ``None``, the setregid() system call will be made in the child process prior to the execution of the subprocess. If the provided value is a string, it will be looked up via :func:`grp.getgrnam` and the value in ``gr_gid`` w...
python, official-docs, cpython, P0
Local_Trusted_Corpus
27347d10-affe-47be-9ca7-b7deb6ecb353
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,662
supabase-export-v2
5182dfd972981d2c
Return ``(exitcode, output)`` of executing *cmd* in a shell. Execute the string *cmd* in a shell with :func:`check_output` and return a 2-tuple ``(exitcode, output)``. *encoding* and *errors* are used to decode output; see the notes on :ref:`frequently-used-arguments` for more details.
trusted_official_docs
CPython Docs
Return ``(exitcode, output)`` of executing *cmd* in a shell. Execute the string *cmd* in a shell with :func:`check_output` and return a 2-tuple ``(exitcode, output)``. *encoding* and *errors* are used to decode output; see the notes on :ref:`frequently-used-arguments` for more details.
Return ``(exitcode, output)`` of executing *cmd* in a shell. Execute the string *cmd* in a shell with :func:`check_output` and return a 2-tuple ``(exitcode, output)``. *encoding* and *errors* are used to decode output; see the notes on :ref:`frequently-used-arguments` for more details.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2777813d-a7db-44e9-89f4-8aed91d84e24
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,663
supabase-export-v2
eb45f48b5f58eb9c
shell with :func:`check_output` and return a 2-tuple ``(exitcode, output)``. *encoding* and *errors* are used to decode output; see the notes on :ref:`frequently-used-arguments` for more details. A trailing newline is stripped from the output. The exit code for the command can be interpreted as the return code of subp...
trusted_official_docs
CPython Docs
shell with :func:`check_output` and return a 2-tuple ``(exitcode, output)``. *encoding* and *errors* are used to decode output; see the notes on :ref:`frequently-used-arguments` for more details. A trailing newline is stripped from the output. The exit code for the command can be interpreted as the return code of subp...
shell with :func:`check_output` and return a 2-tuple ``(exitcode, output)``. *encoding* and *errors* are used to decode output; see the notes on :ref:`frequently-used-arguments` for more details. A trailing newline is stripped from the output. The exit code for the command can be interpreted as the return code of subp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
28a6239b-15e2-40e0-9e98-918dd40281e0
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,513
supabase-export-v2
2a2f99af476e020d
.. attribute:: hStdOutput If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is the standard output handle for the process. Otherwise, this attribute is ignored and the default for standard output is the console window's buffer.
trusted_official_docs
CPython Docs
.. attribute:: hStdOutput If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is the standard output handle for the process. Otherwise, this attribute is ignored and the default for standard output is the console window's buffer.
.. attribute:: hStdOutput If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is the standard output handle for the process. Otherwise, this attribute is ignored and the default for standard output is the console window's buffer.
python, official-docs, cpython, P0
Local_Trusted_Corpus
28fd15b2-bf30-475d-9b59-bf1b75a8071a
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,667
supabase-export-v2
1caa6789bf45683d
.. versionchanged:: 3.3.4 Windows support was added. The function now returns (exitcode, output) instead of (status, output) as it did in Python 3.3.3 and earlier. exitcode has the same value as :attr:`~Popen.returncode`.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.3.4 Windows support was added. The function now returns (exitcode, output) instead of (status, output) as it did in Python 3.3.3 and earlier. exitcode has the same value as :attr:`~Popen.returncode`.
.. versionchanged:: 3.3.4 Windows support was added. The function now returns (exitcode, output) instead of (status, output) as it did in Python 3.3.3 and earlier. exitcode has the same value as :attr:`~Popen.returncode`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
29ddf3f0-a44f-4028-9d3c-6743a56ef69c
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,301
supabase-export-v2
22b152da24f03237
.. data:: PIPE Special value that can be used as the *stdin*, *stdout* or *stderr* argument to :class:`Popen` and indicates that a pipe to the standard stream should be opened. Most useful with :meth:`Popen.communicate`.
trusted_official_docs
CPython Docs
.. data:: PIPE Special value that can be used as the *stdin*, *stdout* or *stderr* argument to :class:`Popen` and indicates that a pipe to the standard stream should be opened. Most useful with :meth:`Popen.communicate`.
.. data:: PIPE Special value that can be used as the *stdin*, *stdout* or *stderr* argument to :class:`Popen` and indicates that a pipe to the standard stream should be opened. Most useful with :meth:`Popen.communicate`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2b5d872b-6519-4901-8988-03eae244a3e9
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,377
supabase-export-v2
6272f7ec6a1b1ab7
to ``0`` which was unbuffered and allowed short reads. This was unintentional and did not match the behavior of Python 2 as most code expected. The *executable* argument specifies a replacement program to execute. It is very seldom needed. When ``shell=False``, *executable* replaces the program to execute specified b...
trusted_official_docs
CPython Docs
to ``0`` which was unbuffered and allowed short reads. This was unintentional and did not match the behavior of Python 2 as most code expected. The *executable* argument specifies a replacement program to execute. It is very seldom needed. When ``shell=False``, *executable* replaces the program to execute specified b...
to ``0`` which was unbuffered and allowed short reads. This was unintentional and did not match the behavior of Python 2 as most code expected. The *executable* argument specifies a replacement program to execute. It is very seldom needed. When ``shell=False``, *executable* replaces the program to execute specified b...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2d95aa71-4c05-4fdb-8bae-ba1d296608de
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,505
supabase-export-v2
18b9b07f9e78f2a0
.. class:: STARTUPINFO(*, dwFlags=0, hStdInput=None, hStdOutput=None, \ hStdError=None, wShowWindow=0, lpAttributeList=None) Partial support of the Windows `STARTUPINFO <https://msdn.microsoft.com/en-us/library/ms686331(v=vs.85).aspx>`__ structure is used for :class:`Popen` creation. The following attributes can be ...
trusted_official_docs
CPython Docs
.. class:: STARTUPINFO(*, dwFlags=0, hStdInput=None, hStdOutput=None, \ hStdError=None, wShowWindow=0, lpAttributeList=None) Partial support of the Windows `STARTUPINFO <https://msdn.microsoft.com/en-us/library/ms686331(v=vs.85).aspx>`__ structure is used for :class:`Popen` creation. The following attributes can be ...
.. class:: STARTUPINFO(*, dwFlags=0, hStdInput=None, hStdOutput=None, \ hStdError=None, wShowWindow=0, lpAttributeList=None) Partial support of the Windows `STARTUPINFO <https://msdn.microsoft.com/en-us/library/ms686331(v=vs.85).aspx>`__ structure is used for :class:`Popen` creation. The following attributes can be ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2df813de-003e-4803-9c00-5ad41533bebc
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,341
supabase-export-v2
e486fcf93b7bdbe0
If text mode is not used, *stdin*, *stdout* and *stderr* will be opened as binary streams. No encoding or line ending conversion is performed. .. versionchanged:: 3.6 Added the *encoding* and *errors* parameters.
trusted_official_docs
CPython Docs
If text mode is not used, *stdin*, *stdout* and *stderr* will be opened as binary streams. No encoding or line ending conversion is performed. .. versionchanged:: 3.6 Added the *encoding* and *errors* parameters.
If text mode is not used, *stdin*, *stdout* and *stderr* will be opened as binary streams. No encoding or line ending conversion is performed. .. versionchanged:: 3.6 Added the *encoding* and *errors* parameters.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2ea8c959-0b87-4e6c-8bbd-36fedf4ecfe7
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,506
supabase-export-v2
17507ee56076d6df
Partial support of the Windows `STARTUPINFO <https://msdn.microsoft.com/en-us/library/ms686331(v=vs.85).aspx>`__ structure is used for :class:`Popen` creation. The following attributes can be set by passing them as keyword-only arguments. .. versionchanged:: 3.7 Keyword-only argument support was added.
trusted_official_docs
CPython Docs
Partial support of the Windows `STARTUPINFO <https://msdn.microsoft.com/en-us/library/ms686331(v=vs.85).aspx>`__ structure is used for :class:`Popen` creation. The following attributes can be set by passing them as keyword-only arguments. .. versionchanged:: 3.7 Keyword-only argument support was added.
Partial support of the Windows `STARTUPINFO <https://msdn.microsoft.com/en-us/library/ms686331(v=vs.85).aspx>`__ structure is used for :class:`Popen` creation. The following attributes can be set by passing them as keyword-only arguments. .. versionchanged:: 3.7 Keyword-only argument support was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
300a2f16-8cfd-4217-a3cb-9d529ebe0fa4
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,365
supabase-export-v2
22893f30758fb498
need quoting or backslash escaping when used in the shell (such as filenames containing spaces or the *echo* command shown above) are single list elements. On Windows, if *args* is a sequence, it will be converted to a string in a manner described in :ref:`converting-argument-sequence`. This is because the underlying...
trusted_official_docs
CPython Docs
need quoting or backslash escaping when used in the shell (such as filenames containing spaces or the *echo* command shown above) are single list elements. On Windows, if *args* is a sequence, it will be converted to a string in a manner described in :ref:`converting-argument-sequence`. This is because the underlying...
need quoting or backslash escaping when used in the shell (such as filenames containing spaces or the *echo* command shown above) are single list elements. On Windows, if *args* is a sequence, it will be converted to a string in a manner described in :ref:`converting-argument-sequence`. This is because the underlying...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3102a07a-7e5b-4ac9-b991-06bd10b976c0
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,658
supabase-export-v2
d30a2d633c09958b
not None and rc >> 8: print("There were some errors") ==> process = Popen(cmd, stdin=PIPE) ... process.stdin.close() if process.wait() != 0: print("There were some errors") Legacy Shell Invocation Functions ---------------------------------
trusted_official_docs
CPython Docs
not None and rc >> 8: print("There were some errors") ==> process = Popen(cmd, stdin=PIPE) ... process.stdin.close() if process.wait() != 0: print("There were some errors") Legacy Shell Invocation Functions ---------------------------------
not None and rc >> 8: print("There were some errors") ==> process = Popen(cmd, stdin=PIPE) ... process.stdin.close() if process.wait() != 0: print("There were some errors") Legacy Shell Invocation Functions ---------------------------------
python, official-docs, cpython, P0
Local_Trusted_Corpus
320b705c-5bb5-4dd1-aff3-6f0be357bde1
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,518
supabase-export-v2
7407ef2c5d3bfce8
any of the values that can be specified in the ``nCmdShow`` parameter for the `ShowWindow <https://msdn.microsoft.com/en-us/library/ms633548(v=vs.85).aspx>`__ function, except for ``SW_SHOWDEFAULT``. Otherwise, this attribute is ignored. :data:`SW_HIDE` is provided for this attribute. It is used when :class:`Popen` is...
trusted_official_docs
CPython Docs
any of the values that can be specified in the ``nCmdShow`` parameter for the `ShowWindow <https://msdn.microsoft.com/en-us/library/ms633548(v=vs.85).aspx>`__ function, except for ``SW_SHOWDEFAULT``. Otherwise, this attribute is ignored. :data:`SW_HIDE` is provided for this attribute. It is used when :class:`Popen` is...
any of the values that can be specified in the ``nCmdShow`` parameter for the `ShowWindow <https://msdn.microsoft.com/en-us/library/ms633548(v=vs.85).aspx>`__ function, except for ``SW_SHOWDEFAULT``. Otherwise, this attribute is ignored. :data:`SW_HIDE` is provided for this attribute. It is used when :class:`Popen` is...
python, official-docs, cpython, P0
Local_Trusted_Corpus
33d6175d-5297-417d-b918-c721b63c72df
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,587
supabase-export-v2
2709cd098430a423
To suppress stdout or stderr, supply a value of :data:`DEVNULL`. The arguments shown above are merely some common ones. The full function signature is the same as that of the :class:`Popen` constructor - this function passes all supplied arguments other than *timeout* directly through to that interface.
trusted_official_docs
CPython Docs
To suppress stdout or stderr, supply a value of :data:`DEVNULL`. The arguments shown above are merely some common ones. The full function signature is the same as that of the :class:`Popen` constructor - this function passes all supplied arguments other than *timeout* directly through to that interface.
To suppress stdout or stderr, supply a value of :data:`DEVNULL`. The arguments shown above are merely some common ones. The full function signature is the same as that of the :class:`Popen` constructor - this function passes all supplied arguments other than *timeout* directly through to that interface.
python, official-docs, cpython, P0
Local_Trusted_Corpus
34a30744-58c1-45a7-8ecf-0ff080a2fcbe
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,354
supabase-export-v2
53a4245e998c2c93
class uses :meth:`os.execvpe`-like behavior to execute the child program. On Windows, the class uses the Windows ``CreateProcess()`` function. The arguments to :class:`Popen` are as follows. *args* should be a sequence of program arguments or else a single string or :term:`path-like object`. By default, the program to...
trusted_official_docs
CPython Docs
class uses :meth:`os.execvpe`-like behavior to execute the child program. On Windows, the class uses the Windows ``CreateProcess()`` function. The arguments to :class:`Popen` are as follows. *args* should be a sequence of program arguments or else a single string or :term:`path-like object`. By default, the program to...
class uses :meth:`os.execvpe`-like behavior to execute the child program. On Windows, the class uses the Windows ``CreateProcess()`` function. The arguments to :class:`Popen` are as follows. *args* should be a sequence of program arguments or else a single string or :term:`path-like object`. By default, the program to...
python, official-docs, cpython, P0
Local_Trusted_Corpus
37d11693-87f5-48f1-9d08-ef69d580af19
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,393
supabase-export-v2
14c29d24ab23b85d
.. versionchanged:: 3.2 The default for *close_fds* was changed from :const:`False` to what is described above. .. versionchanged:: 3.7 On Windows the default for *close_fds* was changed from :const:`False` to :const:`True` when redirecting the standard handles. It's now possible to set *close_fds* to :const:`True` ...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.2 The default for *close_fds* was changed from :const:`False` to what is described above. .. versionchanged:: 3.7 On Windows the default for *close_fds* was changed from :const:`False` to :const:`True` when redirecting the standard handles. It's now possible to set *close_fds* to :const:`True` ...
.. versionchanged:: 3.2 The default for *close_fds* was changed from :const:`False` to what is described above. .. versionchanged:: 3.7 On Windows the default for *close_fds* was changed from :const:`False` to :const:`True` when redirecting the standard handles. It's now possible to set *close_fds* to :const:`True` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3c39588f-b849-452a-9c77-362b52d2fdc4
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,420
supabase-export-v2
82dda2f95f8082b6
.. _side-by-side assembly: https://en.wikipedia.org/wiki/Side-by-Side_Assembly If *encoding* or *errors* are specified, or *text* is true, the file objects *stdin*, *stdout* and *stderr* are opened in text mode with the specified *encoding* and *errors*, as described above in :ref:`frequently-used-arguments`. The *un...
trusted_official_docs
CPython Docs
.. _side-by-side assembly: https://en.wikipedia.org/wiki/Side-by-Side_Assembly If *encoding* or *errors* are specified, or *text* is true, the file objects *stdin*, *stdout* and *stderr* are opened in text mode with the specified *encoding* and *errors*, as described above in :ref:`frequently-used-arguments`. The *un...
.. _side-by-side assembly: https://en.wikipedia.org/wiki/Side-by-Side_Assembly If *encoding* or *errors* are specified, or *text* is true, the file objects *stdin*, *stdout* and *stderr* are opened in text mode with the specified *encoding* and *errors*, as described above in :ref:`frequently-used-arguments`. The *un...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3cc2ea12-3f4a-44f1-9108-5d4d570b5c03
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,684
supabase-export-v2
3831a57ea5176619
sequence is converted to a string that can be parsed using the following rules (which correspond to the rules used by the MS C runtime): 1. Arguments are delimited by white space, which is either a space or a tab.
trusted_official_docs
CPython Docs
sequence is converted to a string that can be parsed using the following rules (which correspond to the rules used by the MS C runtime): 1. Arguments are delimited by white space, which is either a space or a tab.
sequence is converted to a string that can be parsed using the following rules (which correspond to the rules used by the MS C runtime): 1. Arguments are delimited by white space, which is either a space or a tab.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3d6dd9a2-6d38-467f-bc34-01676f74686d
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,511
supabase-export-v2
b6a3ec51813dbac1
.. attribute:: hStdInput If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is the standard input handle for the process. If :data:`STARTF_USESTDHANDLES` is not specified, the default for standard input is the keyboard buffer.
trusted_official_docs
CPython Docs
.. attribute:: hStdInput If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is the standard input handle for the process. If :data:`STARTF_USESTDHANDLES` is not specified, the default for standard input is the keyboard buffer.
.. attribute:: hStdInput If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is the standard input handle for the process. If :data:`STARTF_USESTDHANDLES` is not specified, the default for standard input is the keyboard buffer.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3d962a50-2348-406a-bc05-779beaf3cef0
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,525
supabase-export-v2
fd46e3be1f8b61ae
.. warning:: In a multithreaded process, use caution to avoid leaking handles that are marked inheritable when combining this feature with concurrent calls to other process creation functions that inherit all handles such as :func:`os.system`. This also applies to standard handle redirection, which temporarily crea...
trusted_official_docs
CPython Docs
.. warning:: In a multithreaded process, use caution to avoid leaking handles that are marked inheritable when combining this feature with concurrent calls to other process creation functions that inherit all handles such as :func:`os.system`. This also applies to standard handle redirection, which temporarily crea...
.. warning:: In a multithreaded process, use caution to avoid leaking handles that are marked inheritable when combining this feature with concurrent calls to other process creation functions that inherit all handles such as :func:`os.system`. This also applies to standard handle redirection, which temporarily crea...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3dc8636f-9b65-4c52-bf44-b16e934f5a20
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,697
supabase-export-v2
c42b3eb07d4b4730
attribute is available to read. Despite the name, a true value does not indicate the corresponding function will be used, only that it may be. Please file issues any time you have to use these private knobs with a way to reproduce the issue you were seeing. Link to that issue from a comment in your code.
trusted_official_docs
CPython Docs
attribute is available to read. Despite the name, a true value does not indicate the corresponding function will be used, only that it may be. Please file issues any time you have to use these private knobs with a way to reproduce the issue you were seeing. Link to that issue from a comment in your code.
attribute is available to read. Despite the name, a true value does not indicate the corresponding function will be used, only that it may be. Please file issues any time you have to use these private knobs with a way to reproduce the issue you were seeing. Link to that issue from a comment in your code.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3e906c3c-23ec-49dc-8990-4a71c850c2a1
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,312
supabase-export-v2
bfa4bf62b5d80c6b
.. attribute:: output Output of the child process if it was captured by :func:`run` or :func:`check_output`. Otherwise, ``None``. This is always :class:`bytes` when any output was captured regardless of the ``text=True`` setting. It may remain ``None`` instead of ``b''`` when no output was observed.
trusted_official_docs
CPython Docs
.. attribute:: output Output of the child process if it was captured by :func:`run` or :func:`check_output`. Otherwise, ``None``. This is always :class:`bytes` when any output was captured regardless of the ``text=True`` setting. It may remain ``None`` instead of ``b''`` when no output was observed.
.. attribute:: output Output of the child process if it was captured by :func:`run` or :func:`check_output`. Otherwise, ``None``. This is always :class:`bytes` when any output was captured regardless of the ``text=True`` setting. It may remain ``None`` instead of ``b''`` when no output was observed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3f214f79-bbb9-4bb6-beca-cf6980f887ed
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,660
supabase-export-v2
bac1dc9c0a5b1115
These operations implicitly invoke the system shell and none of the guarantees described above regarding security and exception handling consistency are valid for these functions. .. function:: getstatusoutput(cmd, *, encoding=None, errors=None)
trusted_official_docs
CPython Docs
These operations implicitly invoke the system shell and none of the guarantees described above regarding security and exception handling consistency are valid for these functions. .. function:: getstatusoutput(cmd, *, encoding=None, errors=None)
These operations implicitly invoke the system shell and none of the guarantees described above regarding security and exception handling consistency are valid for these functions. .. function:: getstatusoutput(cmd, *, encoding=None, errors=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
3f383ffa-c43d-4f6d-8abb-b21d4396ea9a
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,491
supabase-export-v2
e26ba3c53d8ebb0b
.. attribute:: Popen.stderr If the *stderr* argument was :data:`PIPE`, this attribute is a readable stream object as returned by :func:`open`. Reading from the stream provides error output from the child process. If the *encoding* or *errors* arguments were specified or the *text* or *universal_newlines* argument wa...
trusted_official_docs
CPython Docs
.. attribute:: Popen.stderr If the *stderr* argument was :data:`PIPE`, this attribute is a readable stream object as returned by :func:`open`. Reading from the stream provides error output from the child process. If the *encoding* or *errors* arguments were specified or the *text* or *universal_newlines* argument wa...
.. attribute:: Popen.stderr If the *stderr* argument was :data:`PIPE`, this attribute is a readable stream object as returned by :func:`open`. Reading from the stream provides error output from the child process. If the *encoding* or *errors* arguments were specified or the *text* or *universal_newlines* argument wa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
42327769-2bc1-4b4f-893f-ee937df7b97f
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,293
supabase-export-v2
9eb75622453d67e3
the child process. A bytes sequence, or a string if :func:`run` was called with an encoding, errors, or text=True. ``None`` if stdout was not captured. If you ran the process with ``stderr=subprocess.STDOUT``, stdout and stderr will be combined in this attribute, and :attr:`stderr` will be ``None``.
trusted_official_docs
CPython Docs
the child process. A bytes sequence, or a string if :func:`run` was called with an encoding, errors, or text=True. ``None`` if stdout was not captured. If you ran the process with ``stderr=subprocess.STDOUT``, stdout and stderr will be combined in this attribute, and :attr:`stderr` will be ``None``.
the child process. A bytes sequence, or a string if :func:`run` was called with an encoding, errors, or text=True. ``None`` if stdout was not captured. If you ran the process with ``stderr=subprocess.STDOUT``, stdout and stderr will be combined in this attribute, and :attr:`stderr` will be ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
473ef11e-1110-4f70-a79e-9d19005cc02c
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,683
supabase-export-v2
ed0d70bd9861424f
Converting an argument sequence to a string on Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ On Windows, an *args* sequence is converted to a string that can be parsed using the following rules (which correspond to the rules used by the MS C runtime):
trusted_official_docs
CPython Docs
Converting an argument sequence to a string on Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ On Windows, an *args* sequence is converted to a string that can be parsed using the following rules (which correspond to the rules used by the MS C runtime):
Converting an argument sequence to a string on Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ On Windows, an *args* sequence is converted to a string that can be parsed using the following rules (which correspond to the rules used by the MS C runtime):
python, official-docs, cpython, P0
Local_Trusted_Corpus
4d19246d-2a11-48c8-8800-1d4a495fa051
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,594
supabase-export-v2
a34ffc4f39f3d0b0
.. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, \ shell=False, cwd=None, timeout=None, \ **other_popen_kwargs) Run command with arguments. Wait for command to complete. If the return code was zero then return, otherwise raise :exc:`CalledProcessError`. The :exc:`CalledProcessError` object will...
trusted_official_docs
CPython Docs
.. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, \ shell=False, cwd=None, timeout=None, \ **other_popen_kwargs) Run command with arguments. Wait for command to complete. If the return code was zero then return, otherwise raise :exc:`CalledProcessError`. The :exc:`CalledProcessError` object will...
.. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, \ shell=False, cwd=None, timeout=None, \ **other_popen_kwargs) Run command with arguments. Wait for command to complete. If the return code was zero then return, otherwise raise :exc:`CalledProcessError`. The :exc:`CalledProcessError` object will...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5032e892-6e46-41d1-8f0c-cc39da638be8
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,375
supabase-export-v2
f1f4ec8cee062e2e
*bufsize* will be supplied as the corresponding argument to the :func:`open` function when creating the stdin/stdout/stderr pipe file objects: - ``0`` means unbuffered (read and write are one system call and can return short) - ``1`` means line buffered (only usable if ``text=True`` or ``universal_newlines=True``) ...
trusted_official_docs
CPython Docs
*bufsize* will be supplied as the corresponding argument to the :func:`open` function when creating the stdin/stdout/stderr pipe file objects: - ``0`` means unbuffered (read and write are one system call and can return short) - ``1`` means line buffered (only usable if ``text=True`` or ``universal_newlines=True``) ...
*bufsize* will be supplied as the corresponding argument to the :func:`open` function when creating the stdin/stdout/stderr pipe file objects: - ``0`` means unbuffered (read and write are one system call and can return short) - ``1`` means line buffered (only usable if ``text=True`` or ``universal_newlines=True``) ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
513c9cf0-1b89-403d-8ed0-29827a4b794c
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,459
supabase-export-v2
176aa90d51f6fb93
- Linux >= 5.3 uses :func:`os.pidfd_open` + :func:`select.poll` - macOS and other BSD variants use :func:`select.kqueue` + ``KQ_FILTER_PROC`` + ``KQ_NOTE_EXIT`` - Windows uses ``WaitForSingleObject`` If none of these mechanisms are available, the function falls back to a busy loop (non-blocking call and short sleeps).
trusted_official_docs
CPython Docs
- Linux >= 5.3 uses :func:`os.pidfd_open` + :func:`select.poll` - macOS and other BSD variants use :func:`select.kqueue` + ``KQ_FILTER_PROC`` + ``KQ_NOTE_EXIT`` - Windows uses ``WaitForSingleObject`` If none of these mechanisms are available, the function falls back to a busy loop (non-blocking call and short sleeps).
- Linux >= 5.3 uses :func:`os.pidfd_open` + :func:`select.poll` - macOS and other BSD variants use :func:`select.kqueue` + ``KQ_FILTER_PROC`` + ``KQ_NOTE_EXIT`` - Windows uses ``WaitForSingleObject`` If none of these mechanisms are available, the function falls back to a busy loop (non-blocking call and short sleeps).
python, official-docs, cpython, P0
Local_Trusted_Corpus
5387f785-267d-45bc-a3f6-78ddd28b0573
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,593
supabase-export-v2
a9a036c9b6e142a5
directory and ``%PATH%`` are replaced with ``%COMSPEC%`` and ``%SystemRoot%\System32\cmd.exe``. As a result, dropping a malicious program named ``cmd.exe`` into a current directory no longer works. .. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, \ shell=False, cwd=None, timeout=None, \ **other...
trusted_official_docs
CPython Docs
directory and ``%PATH%`` are replaced with ``%COMSPEC%`` and ``%SystemRoot%\System32\cmd.exe``. As a result, dropping a malicious program named ``cmd.exe`` into a current directory no longer works. .. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, \ shell=False, cwd=None, timeout=None, \ **other...
directory and ``%PATH%`` are replaced with ``%COMSPEC%`` and ``%SystemRoot%\System32\cmd.exe``. As a result, dropping a malicious program named ``cmd.exe`` into a current directory no longer works. .. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, \ shell=False, cwd=None, timeout=None, \ **other...
python, official-docs, cpython, P0
Local_Trusted_Corpus
538b200a-ac3a-4f8f-bed7-79ca6371783d
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,340
supabase-export-v2
265aa2ae0081bc06
output will be converted to ``'\n'``. For more information see the documentation of the :class:`io.TextIOWrapper` class when the *newline* argument to its constructor is ``None``. If text mode is not used, *stdin*, *stdout* and *stderr* will be opened as binary streams. No encoding or line ending conversion is perform...
trusted_official_docs
CPython Docs
output will be converted to ``'\n'``. For more information see the documentation of the :class:`io.TextIOWrapper` class when the *newline* argument to its constructor is ``None``. If text mode is not used, *stdin*, *stdout* and *stderr* will be opened as binary streams. No encoding or line ending conversion is perform...
output will be converted to ``'\n'``. For more information see the documentation of the :class:`io.TextIOWrapper` class when the *newline* argument to its constructor is ``None``. If text mode is not used, *stdin*, *stdout* and *stderr* will be opened as binary streams. No encoding or line ending conversion is perform...
python, official-docs, cpython, P0
Local_Trusted_Corpus
58f19ef5-04d7-43a7-90dd-2753edf06603
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,688
supabase-export-v2
6f09936fdeacf51f
4. Backslashes are interpreted literally, unless they immediately precede a double quotation mark. 5. If backslashes immediately precede a double quotation mark, every pair of backslashes is interpreted as a literal backslash. If the number of backslashes is odd, the last backslash escapes the next double quotation ...
trusted_official_docs
CPython Docs
4. Backslashes are interpreted literally, unless they immediately precede a double quotation mark. 5. If backslashes immediately precede a double quotation mark, every pair of backslashes is interpreted as a literal backslash. If the number of backslashes is odd, the last backslash escapes the next double quotation ...
4. Backslashes are interpreted literally, unless they immediately precede a double quotation mark. 5. If backslashes immediately precede a double quotation mark, every pair of backslashes is interpreted as a literal backslash. If the number of backslashes is odd, the last backslash escapes the next double quotation ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
58fede31-c5ac-4323-b952-17992d09615b
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,493
supabase-export-v2
dec0aeff17cb4b02
.. warning:: Use :meth:`~Popen.communicate` rather than :attr:`.stdin.write <Popen.stdin>`, :attr:`.stdout.read <Popen.stdout>` or :attr:`.stderr.read <Popen.stderr>` to avoid deadlocks due to any of the other OS pipe buffers filling up and blocking the child process.
trusted_official_docs
CPython Docs
.. warning:: Use :meth:`~Popen.communicate` rather than :attr:`.stdin.write <Popen.stdin>`, :attr:`.stdout.read <Popen.stdout>` or :attr:`.stderr.read <Popen.stderr>` to avoid deadlocks due to any of the other OS pipe buffers filling up and blocking the child process.
.. warning:: Use :meth:`~Popen.communicate` rather than :attr:`.stdin.write <Popen.stdin>`, :attr:`.stdout.read <Popen.stdout>` or :attr:`.stderr.read <Popen.stderr>` to avoid deadlocks due to any of the other OS pipe buffers filling up and blocking the child process.
python, official-docs, cpython, P0
Local_Trusted_Corpus
594fbd1e-b5ee-4315-937d-6f14073a0b60
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,609
supabase-export-v2
48eaa2a784954eca
run(..., check=True, stdout=PIPE).stdout The arguments shown above are merely some common ones. The full function signature is largely the same as that of :func:`run` - most arguments are passed directly through to that interface. One API deviation from :func:`run` behavior exists: passing ``input=None`` will behave ...
trusted_official_docs
CPython Docs
run(..., check=True, stdout=PIPE).stdout The arguments shown above are merely some common ones. The full function signature is largely the same as that of :func:`run` - most arguments are passed directly through to that interface. One API deviation from :func:`run` behavior exists: passing ``input=None`` will behave ...
run(..., check=True, stdout=PIPE).stdout The arguments shown above are merely some common ones. The full function signature is largely the same as that of :func:`run` - most arguments are passed directly through to that interface. One API deviation from :func:`run` behavior exists: passing ``input=None`` will behave ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
597e3547-5183-4b9f-a506-a06e562da893
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,693
supabase-export-v2
645ce4c37a88ee53
Disable use of ``posix_spawn()`` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ On Linux, :mod:`!subprocess` defaults to using the ``vfork()`` system call internally when it is safe to do so rather than ``fork()``. This greatly improves performance.
trusted_official_docs
CPython Docs
Disable use of ``posix_spawn()`` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ On Linux, :mod:`!subprocess` defaults to using the ``vfork()`` system call internally when it is safe to do so rather than ``fork()``. This greatly improves performance.
Disable use of ``posix_spawn()`` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ On Linux, :mod:`!subprocess` defaults to using the ``vfork()`` system call internally when it is safe to do so rather than ``fork()``. This greatly improves performance.
python, official-docs, cpython, P0
Local_Trusted_Corpus
602a841f-3dc2-4dfe-9ce4-a110b8c4df25
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,403
supabase-export-v2
8eb1abdfd031d00d
If *start_new_session* is true the ``setsid()`` system call will be made in the child process prior to the execution of the subprocess. .. availability:: POSIX .. versionchanged:: 3.2 *start_new_session* was added.
trusted_official_docs
CPython Docs
If *start_new_session* is true the ``setsid()`` system call will be made in the child process prior to the execution of the subprocess. .. availability:: POSIX .. versionchanged:: 3.2 *start_new_session* was added.
If *start_new_session* is true the ``setsid()`` system call will be made in the child process prior to the execution of the subprocess. .. availability:: POSIX .. versionchanged:: 3.2 *start_new_session* was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
668dba3a-a0ba-465e-a206-1947d1ffa17b
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,626
supabase-export-v2
a0580b7ec488a44b
All "a" functions in this section fail (more or less) silently if the executed program cannot be found; the "b" replacements raise :exc:`OSError` instead. In addition, the replacements using :func:`check_output` will fail with a :exc:`CalledProcessError` if the requested operation produces a non-zero return code. The...
trusted_official_docs
CPython Docs
All "a" functions in this section fail (more or less) silently if the executed program cannot be found; the "b" replacements raise :exc:`OSError` instead. In addition, the replacements using :func:`check_output` will fail with a :exc:`CalledProcessError` if the requested operation produces a non-zero return code. The...
All "a" functions in this section fail (more or less) silently if the executed program cannot be found; the "b" replacements raise :exc:`OSError` instead. In addition, the replacements using :func:`check_output` will fail with a :exc:`CalledProcessError` if the requested operation produces a non-zero return code. The...
python, official-docs, cpython, P0
Local_Trusted_Corpus
68aad14e-d2b5-4f86-bf69-bf6ba1c14714
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,470
supabase-export-v2
753ab900d11f391a
process is not killed if the timeout expires, so in order to cleanup properly a well-behaved application should kill the child process and finish communication:: proc = subprocess.Popen(...) try: outs, errs = proc.communicate(timeout=15) except TimeoutExpired: proc.kill() outs, errs = proc.communicate()
trusted_official_docs
CPython Docs
process is not killed if the timeout expires, so in order to cleanup properly a well-behaved application should kill the child process and finish communication:: proc = subprocess.Popen(...) try: outs, errs = proc.communicate(timeout=15) except TimeoutExpired: proc.kill() outs, errs = proc.communicate()
process is not killed if the timeout expires, so in order to cleanup properly a well-behaved application should kill the child process and finish communication:: proc = subprocess.Popen(...) try: outs, errs = proc.communicate(timeout=15) except TimeoutExpired: proc.kill() outs, errs = proc.communicate()
python, official-docs, cpython, P0
Local_Trusted_Corpus
6c550f1c-6bc7-49ec-b6a9-022447a82283
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,410
supabase-export-v2
77c9574dd8267959
.. availability:: POSIX .. versionadded:: 3.9 If *user* is not ``None``, the setreuid() system call will be made in the child process prior to the execution of the subprocess. If the provided value is a string, it will be looked up via :func:`pwd.getpwnam` and the value in ``pw_uid`` will be used. If the value is an...
trusted_official_docs
CPython Docs
.. availability:: POSIX .. versionadded:: 3.9 If *user* is not ``None``, the setreuid() system call will be made in the child process prior to the execution of the subprocess. If the provided value is a string, it will be looked up via :func:`pwd.getpwnam` and the value in ``pw_uid`` will be used. If the value is an...
.. availability:: POSIX .. versionadded:: 3.9 If *user* is not ``None``, the setreuid() system call will be made in the child process prior to the execution of the subprocess. If the provided value is a string, it will be looked up via :func:`pwd.getpwnam` and the value in ``pw_uid`` will be used. If the value is an...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6efbcf5f-61cb-4ebe-9355-c52cdc584d88
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,362
supabase-export-v2
b2d755d74fb95c65
.. note:: It may not be obvious how to break a shell command into a sequence of arguments, especially in complex cases. :meth:`shlex.split` can illustrate how to determine the correct tokenization for *args*::
trusted_official_docs
CPython Docs
.. note:: It may not be obvious how to break a shell command into a sequence of arguments, especially in complex cases. :meth:`shlex.split` can illustrate how to determine the correct tokenization for *args*::
.. note:: It may not be obvious how to break a shell command into a sequence of arguments, especially in complex cases. :meth:`shlex.split` can illustrate how to determine the correct tokenization for *args*::
python, official-docs, cpython, P0
Local_Trusted_Corpus
6f4c6a3a-23cb-478f-aed2-9bd5f8d66f98
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,266
supabase-export-v2
74e8ecbf6fdd536a
.. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\ capture_output=False, shell=False, cwd=None, timeout=None, \ check=False, encoding=None, errors=None, text=None, env=None, \ universal_newlines=None, **other_popen_kwargs) Run the command described by *args*. Wait for command to complete, the...
trusted_official_docs
CPython Docs
.. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\ capture_output=False, shell=False, cwd=None, timeout=None, \ check=False, encoding=None, errors=None, text=None, env=None, \ universal_newlines=None, **other_popen_kwargs) Run the command described by *args*. Wait for command to complete, the...
.. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\ capture_output=False, shell=False, cwd=None, timeout=None, \ check=False, encoding=None, errors=None, text=None, env=None, \ universal_newlines=None, **other_popen_kwargs) Run the command described by *args*. Wait for command to complete, the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
703bc060-6da2-480c-a2c1-07dc03c36ba7
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,295
supabase-export-v2
4d75265dc1d4e041
.. attribute:: stderr Captured stderr from the child process. A bytes sequence, or a string if :func:`run` was called with an encoding, errors, or text=True. ``None`` if stderr was not captured.
trusted_official_docs
CPython Docs
.. attribute:: stderr Captured stderr from the child process. A bytes sequence, or a string if :func:`run` was called with an encoding, errors, or text=True. ``None`` if stderr was not captured.
.. attribute:: stderr Captured stderr from the child process. A bytes sequence, or a string if :func:`run` was called with an encoding, errors, or text=True. ``None`` if stderr was not captured.
python, official-docs, cpython, P0
Local_Trusted_Corpus
728022dc-a962-4084-8486-1c7d4fe9b496
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,426
supabase-export-v2
c41663c7e7b66be8
* :data:`CREATE_NEW_CONSOLE` * :data:`CREATE_NEW_PROCESS_GROUP` * :data:`ABOVE_NORMAL_PRIORITY_CLASS` * :data:`BELOW_NORMAL_PRIORITY_CLASS` * :data:`HIGH_PRIORITY_CLASS` * :data:`IDLE_PRIORITY_CLASS` * :data:`NORMAL_PRIORITY_CLASS` * :data:`REALTIME_PRIORITY_CLASS` * :data:`CREATE_NO_WINDOW` * :data:`DETACHED_PROCESS` ...
trusted_official_docs
CPython Docs
* :data:`CREATE_NEW_CONSOLE` * :data:`CREATE_NEW_PROCESS_GROUP` * :data:`ABOVE_NORMAL_PRIORITY_CLASS` * :data:`BELOW_NORMAL_PRIORITY_CLASS` * :data:`HIGH_PRIORITY_CLASS` * :data:`IDLE_PRIORITY_CLASS` * :data:`NORMAL_PRIORITY_CLASS` * :data:`REALTIME_PRIORITY_CLASS` * :data:`CREATE_NO_WINDOW` * :data:`DETACHED_PROCESS` ...
* :data:`CREATE_NEW_CONSOLE` * :data:`CREATE_NEW_PROCESS_GROUP` * :data:`ABOVE_NORMAL_PRIORITY_CLASS` * :data:`BELOW_NORMAL_PRIORITY_CLASS` * :data:`HIGH_PRIORITY_CLASS` * :data:`IDLE_PRIORITY_CLASS` * :data:`NORMAL_PRIORITY_CLASS` * :data:`REALTIME_PRIORITY_CLASS` * :data:`CREATE_NO_WINDOW` * :data:`DETACHED_PROCESS` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
72dae59a-5d25-40bd-8253-3b20d771aeff
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,428
supabase-export-v2
c4134d9c39f01a24
.. versionchanged:: 3.10 Added the *pipesize* parameter. Popen objects are supported as context managers via the :keyword:`with` statement: on exit, standard file descriptors are closed, and the process is waited for. ::
trusted_official_docs
CPython Docs
.. versionchanged:: 3.10 Added the *pipesize* parameter. Popen objects are supported as context managers via the :keyword:`with` statement: on exit, standard file descriptors are closed, and the process is waited for. ::
.. versionchanged:: 3.10 Added the *pipesize* parameter. Popen objects are supported as context managers via the :keyword:`with` statement: on exit, standard file descriptors are closed, and the process is waited for. ::
python, official-docs, cpython, P0
Local_Trusted_Corpus
76372dda-64b9-41b0-996f-2ca63186df40
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,409
supabase-export-v2
14852159ac9057f1
provided in *extra_groups* will be looked up via :func:`grp.getgrnam` and the values in ``gr_gid`` will be used. Integer values will be passed verbatim. (POSIX only) .. availability:: POSIX .. versionadded:: 3.9
trusted_official_docs
CPython Docs
provided in *extra_groups* will be looked up via :func:`grp.getgrnam` and the values in ``gr_gid`` will be used. Integer values will be passed verbatim. (POSIX only) .. availability:: POSIX .. versionadded:: 3.9
provided in *extra_groups* will be looked up via :func:`grp.getgrnam` and the values in ``gr_gid`` will be used. Integer values will be passed verbatim. (POSIX only) .. availability:: POSIX .. versionadded:: 3.9
python, official-docs, cpython, P0
Local_Trusted_Corpus
781d10ff-ce93-4a0a-b12e-51a1f0776d9b
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,517
supabase-export-v2
fe0948e2b63ede00
.. attribute:: wShowWindow If :attr:`dwFlags` specifies :data:`STARTF_USESHOWWINDOW`, this attribute can be any of the values that can be specified in the ``nCmdShow`` parameter for the `ShowWindow <https://msdn.microsoft.com/en-us/library/ms633548(v=vs.85).aspx>`__ function, except for ``SW_SHOWDEFAULT``. Otherwis...
trusted_official_docs
CPython Docs
.. attribute:: wShowWindow If :attr:`dwFlags` specifies :data:`STARTF_USESHOWWINDOW`, this attribute can be any of the values that can be specified in the ``nCmdShow`` parameter for the `ShowWindow <https://msdn.microsoft.com/en-us/library/ms633548(v=vs.85).aspx>`__ function, except for ``SW_SHOWDEFAULT``. Otherwis...
.. attribute:: wShowWindow If :attr:`dwFlags` specifies :data:`STARTF_USESHOWWINDOW`, this attribute can be any of the values that can be specified in the ``nCmdShow`` parameter for the `ShowWindow <https://msdn.microsoft.com/en-us/library/ms633548(v=vs.85).aspx>`__ function, except for ``SW_SHOWDEFAULT``. Otherwis...
python, official-docs, cpython, P0
Local_Trusted_Corpus
78e85048-c915-419a-bc89-84512368dc10
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,334
supabase-export-v2
7fd4dbee7d1ced15
Frequently Used Arguments ^^^^^^^^^^^^^^^^^^^^^^^^^ To support a wide variety of use cases, the :class:`Popen` constructor (and the convenience functions) accept a large number of optional arguments. For most typical use cases, many of these arguments can be safely left at their default values. The arguments that are m...
trusted_official_docs
CPython Docs
Frequently Used Arguments ^^^^^^^^^^^^^^^^^^^^^^^^^ To support a wide variety of use cases, the :class:`Popen` constructor (and the convenience functions) accept a large number of optional arguments. For most typical use cases, many of these arguments can be safely left at their default values. The arguments that are m...
Frequently Used Arguments ^^^^^^^^^^^^^^^^^^^^^^^^^ To support a wide variety of use cases, the :class:`Popen` constructor (and the convenience functions) accept a large number of optional arguments. For most typical use cases, many of these arguments can be safely left at their default values. The arguments that are m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
79a4bfcc-2631-4637-b825-3a59d220317d
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,390
supabase-export-v2
9a85d15dfb48bd68
use of the parameter in a subinterpreter raises :exc:`RuntimeError`. The new restriction may affect applications that are deployed in mod_wsgi, uWSGI, and other embedded environments. If *close_fds* is true, all file descriptors except ``0``, ``1`` and ``2`` will be closed before the child process is executed. Otherwi...
trusted_official_docs
CPython Docs
use of the parameter in a subinterpreter raises :exc:`RuntimeError`. The new restriction may affect applications that are deployed in mod_wsgi, uWSGI, and other embedded environments. If *close_fds* is true, all file descriptors except ``0``, ``1`` and ``2`` will be closed before the child process is executed. Otherwi...
use of the parameter in a subinterpreter raises :exc:`RuntimeError`. The new restriction may affect applications that are deployed in mod_wsgi, uWSGI, and other embedded environments. If *close_fds* is true, all file descriptors except ``0``, ``1`` and ``2`` will be closed before the child process is executed. Otherwi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
79d69baf-47f8-4adf-b1f1-3ae701c15f0f
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,542
supabase-export-v2
f9dc7c76cbe5fa8b
.. data:: STARTF_FORCEONFEEDBACK A :attr:`STARTUPINFO.dwFlags` parameter to specify that the *Working in Background* mouse cursor will be displayed while a process is launching. This is the default behavior for GUI processes.
trusted_official_docs
CPython Docs
.. data:: STARTF_FORCEONFEEDBACK A :attr:`STARTUPINFO.dwFlags` parameter to specify that the *Working in Background* mouse cursor will be displayed while a process is launching. This is the default behavior for GUI processes.
.. data:: STARTF_FORCEONFEEDBACK A :attr:`STARTUPINFO.dwFlags` parameter to specify that the *Working in Background* mouse cursor will be displayed while a process is launching. This is the default behavior for GUI processes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c52fd36-cc02-47f0-ab20-9210176e6151
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,416
supabase-export-v2
e3bb782e9c78964c
.. availability:: POSIX .. versionadded:: 3.9 If *env* is not ``None``, it must be a mapping that defines the environment variables for the new process; these are used instead of the default behavior of inheriting the current process' environment. This mapping can be str to str on any platform or bytes to bytes on P...
trusted_official_docs
CPython Docs
.. availability:: POSIX .. versionadded:: 3.9 If *env* is not ``None``, it must be a mapping that defines the environment variables for the new process; these are used instead of the default behavior of inheriting the current process' environment. This mapping can be str to str on any platform or bytes to bytes on P...
.. availability:: POSIX .. versionadded:: 3.9 If *env* is not ``None``, it must be a mapping that defines the environment variables for the new process; these are used instead of the default behavior of inheriting the current process' environment. This mapping can be str to str on any platform or bytes to bytes on P...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7db56583-a53d-429e-a281-5e40c0eeeede
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,453
supabase-export-v2
b1adbcbf763c3b2b
Wait for child process to terminate. Set and return :attr:`~Popen.returncode` attribute. If the process does not terminate after *timeout* seconds, raise a :exc:`TimeoutExpired` exception. It is safe to catch this exception and retry the wait.
trusted_official_docs
CPython Docs
Wait for child process to terminate. Set and return :attr:`~Popen.returncode` attribute. If the process does not terminate after *timeout* seconds, raise a :exc:`TimeoutExpired` exception. It is safe to catch this exception and retry the wait.
Wait for child process to terminate. Set and return :attr:`~Popen.returncode` attribute. If the process does not terminate after *timeout* seconds, raise a :exc:`TimeoutExpired` exception. It is safe to catch this exception and retry the wait.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7dc77cd9-4d3c-41b5-b485-1eff16de7f18
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,337
supabase-export-v2
efea765e82fb0425
*stderr* can be :data:`STDOUT`, which indicates that the stderr data from the child process should be captured into the same file handle as for *stdout*. .. index:: single: universal newlines; subprocess module
trusted_official_docs
CPython Docs
*stderr* can be :data:`STDOUT`, which indicates that the stderr data from the child process should be captured into the same file handle as for *stdout*. .. index:: single: universal newlines; subprocess module
*stderr* can be :data:`STDOUT`, which indicates that the stderr data from the child process should be captured into the same file handle as for *stdout*. .. index:: single: universal newlines; subprocess module
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e0d13bf-c9e8-4278-844f-aa7b4fe38b05
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,489
supabase-export-v2
3787cd0d87a841b7
.. attribute:: Popen.stdout If the *stdout* argument was :data:`PIPE`, this attribute is a readable stream object as returned by :func:`open`. Reading from the stream provides output from the child process. If the *encoding* or *errors* arguments were specified or the *text* or *universal_newlines* argument was ``Tr...
trusted_official_docs
CPython Docs
.. attribute:: Popen.stdout If the *stdout* argument was :data:`PIPE`, this attribute is a readable stream object as returned by :func:`open`. Reading from the stream provides output from the child process. If the *encoding* or *errors* arguments were specified or the *text* or *universal_newlines* argument was ``Tr...
.. attribute:: Popen.stdout If the *stdout* argument was :data:`PIPE`, this attribute is a readable stream object as returned by :func:`open`. Reading from the stream provides output from the child process. If the *encoding* or *errors* arguments were specified or the *text* or *universal_newlines* argument was ``Tr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e94e995-9f45-46ce-8291-b6c082b836fe
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,408
supabase-export-v2
6519380a0fb96a0c
.. availability:: POSIX .. versionadded:: 3.9 If *extra_groups* is not ``None``, the setgroups() system call will be made in the child process prior to the execution of the subprocess. Strings provided in *extra_groups* will be looked up via :func:`grp.getgrnam` and the values in ``gr_gid`` will be used. Integer valu...
trusted_official_docs
CPython Docs
.. availability:: POSIX .. versionadded:: 3.9 If *extra_groups* is not ``None``, the setgroups() system call will be made in the child process prior to the execution of the subprocess. Strings provided in *extra_groups* will be looked up via :func:`grp.getgrnam` and the values in ``gr_gid`` will be used. Integer valu...
.. availability:: POSIX .. versionadded:: 3.9 If *extra_groups* is not ``None``, the setgroups() system call will be made in the child process prior to the execution of the subprocess. Strings provided in *extra_groups* will be looked up via :func:`grp.getgrnam` and the values in ``gr_gid`` will be used. Integer valu...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8616f5e6-7e1b-4a40-95d9-5652c3474288
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,265
supabase-export-v2
436d773daa8d9965
to use the :func:`run` function for all use cases it can handle. For more advanced use cases, the underlying :class:`Popen` interface can be used directly. .. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\ capture_output=False, shell=False, cwd=None, timeout=None, \ check=False, encoding=N...
trusted_official_docs
CPython Docs
to use the :func:`run` function for all use cases it can handle. For more advanced use cases, the underlying :class:`Popen` interface can be used directly. .. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\ capture_output=False, shell=False, cwd=None, timeout=None, \ check=False, encoding=N...
to use the :func:`run` function for all use cases it can handle. For more advanced use cases, the underlying :class:`Popen` interface can be used directly. .. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\ capture_output=False, shell=False, cwd=None, timeout=None, \ check=False, encoding=N...
python, official-docs, cpython, P0
Local_Trusted_Corpus
887e73fa-50fe-4a58-9022-acfbb23f5b50
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,364
supabase-export-v2
ca83288634a34d1f
spam.txt" -cmd "echo '$MONEY'" >>> args = shlex.split(command_line) >>> print(args) ['/bin/vikings', '-input', 'eggs.txt', '-output', 'spam spam.txt', '-cmd', "echo '$MONEY'"] >>> p = subprocess.Popen(args) # Success! Note in particular that options (such as *-input*) and arguments (such as *eggs.txt*) that are separa...
trusted_official_docs
CPython Docs
spam.txt" -cmd "echo '$MONEY'" >>> args = shlex.split(command_line) >>> print(args) ['/bin/vikings', '-input', 'eggs.txt', '-output', 'spam spam.txt', '-cmd', "echo '$MONEY'"] >>> p = subprocess.Popen(args) # Success! Note in particular that options (such as *-input*) and arguments (such as *eggs.txt*) that are separa...
spam.txt" -cmd "echo '$MONEY'" >>> args = shlex.split(command_line) >>> print(args) ['/bin/vikings', '-input', 'eggs.txt', '-output', 'spam spam.txt', '-cmd', "echo '$MONEY'"] >>> p = subprocess.Popen(args) # Success! Note in particular that options (such as *-input*) and arguments (such as *eggs.txt*) that are separa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8880e91c-afc9-4755-9a3e-ad83d6aa956a
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,465
supabase-export-v2
da5df0c3e24143a4
.. method:: Popen.communicate(input=None, timeout=None) Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate and set the :attr:`~Popen.returncode` attribute. The optional *input* argument should be data to be sent to the child proces...
trusted_official_docs
CPython Docs
.. method:: Popen.communicate(input=None, timeout=None) Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate and set the :attr:`~Popen.returncode` attribute. The optional *input* argument should be data to be sent to the child proces...
.. method:: Popen.communicate(input=None, timeout=None) Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate and set the :attr:`~Popen.returncode` attribute. The optional *input* argument should be data to be sent to the child proces...
python, official-docs, cpython, P0
Local_Trusted_Corpus
890e2da2-0b86-4f38-b4de-0f28d7f993d2
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,646
supabase-export-v2
211ab90c1f59f91a
shell=True) if retcode < 0: print("Child was terminated by signal", -retcode, file=sys.stderr) else: print("Child returned", retcode, file=sys.stderr) except OSError as e: print("Execution failed:", e, file=sys.stderr) Replacing the :func:`os.spawn <os.spawnl>` family ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trusted_official_docs
CPython Docs
shell=True) if retcode < 0: print("Child was terminated by signal", -retcode, file=sys.stderr) else: print("Child returned", retcode, file=sys.stderr) except OSError as e: print("Execution failed:", e, file=sys.stderr) Replacing the :func:`os.spawn <os.spawnl>` family ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
shell=True) if retcode < 0: print("Child was terminated by signal", -retcode, file=sys.stderr) else: print("Child returned", retcode, file=sys.stderr) except OSError as e: print("Execution failed:", e, file=sys.stderr) Replacing the :func:`os.spawn <os.spawnl>` family ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python, official-docs, cpython, P0
Local_Trusted_Corpus
898d3b14-7247-4bf6-a1b0-036e44b1baf0
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,575
supabase-export-v2
785b9b041c6873fe
.. data:: CREATE_DEFAULT_ERROR_MODE A :class:`Popen` ``creationflags`` parameter to specify that a new process does not inherit the error mode of the calling process. Instead, the new process gets the default error mode. This feature is particularly useful for multithreaded shell applications that run with hard erro...
trusted_official_docs
CPython Docs
.. data:: CREATE_DEFAULT_ERROR_MODE A :class:`Popen` ``creationflags`` parameter to specify that a new process does not inherit the error mode of the calling process. Instead, the new process gets the default error mode. This feature is particularly useful for multithreaded shell applications that run with hard erro...
.. data:: CREATE_DEFAULT_ERROR_MODE A :class:`Popen` ``creationflags`` parameter to specify that a new process does not inherit the error mode of the calling process. Instead, the new process gets the default error mode. This feature is particularly useful for multithreaded shell applications that run with hard erro...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8a21bb64-0c4d-42f0-b486-22150cb5babb
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,467
supabase-export-v2
66c5362c7d481184
:meth:`communicate` returns a tuple ``(stdout_data, stderr_data)``. The data will be strings if streams were opened in text mode; otherwise, bytes. Note that if you want to send data to the process's stdin, you need to create the Popen object with ``stdin=PIPE``. Similarly, to get anything other than ``None`` in the ...
trusted_official_docs
CPython Docs
:meth:`communicate` returns a tuple ``(stdout_data, stderr_data)``. The data will be strings if streams were opened in text mode; otherwise, bytes. Note that if you want to send data to the process's stdin, you need to create the Popen object with ``stdin=PIPE``. Similarly, to get anything other than ``None`` in the ...
:meth:`communicate` returns a tuple ``(stdout_data, stderr_data)``. The data will be strings if streams were opened in text mode; otherwise, bytes. Note that if you want to send data to the process's stdin, you need to create the Popen object with ``stdin=PIPE``. Similarly, to get anything other than ``None`` in the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus