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
8ad5ba6c-d25a-4ec7-a0ba-b52ac87832cd
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,353
supabase-export-v2
7e202468bb20c28e
shell=False, \ cwd=None, env=None, universal_newlines=None, \ startupinfo=None, creationflags=0, restore_signals=True, \ start_new_session=False, pass_fds=(), *, group=None, \ extra_groups=None, user=None, umask=-1, \ encoding=None, errors=None, text=None, pipesize=-1, \ process_group=None) Execute a child program in a...
trusted_official_docs
CPython Docs
shell=False, \ cwd=None, env=None, universal_newlines=None, \ startupinfo=None, creationflags=0, restore_signals=True, \ start_new_session=False, pass_fds=(), *, group=None, \ extra_groups=None, user=None, umask=-1, \ encoding=None, errors=None, text=None, pipesize=-1, \ process_group=None) Execute a child program in a...
shell=False, \ cwd=None, env=None, universal_newlines=None, \ startupinfo=None, creationflags=0, restore_signals=True, \ start_new_session=False, pass_fds=(), *, group=None, \ extra_groups=None, user=None, umask=-1, \ encoding=None, errors=None, text=None, pipesize=-1, \ process_group=None) Execute a child program in a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b37d2ea-f168-4067-a20a-cdf114dd4542
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,427
supabase-export-v2
bb254ca2a9ef2e3b
size of the pipe is only changed on platforms that support this (only Linux at this time of writing). Other platforms will ignore this parameter. .. versionchanged:: 3.10 Added the *pipesize* parameter.
trusted_official_docs
CPython Docs
size of the pipe is only changed on platforms that support this (only Linux at this time of writing). Other platforms will ignore this parameter. .. versionchanged:: 3.10 Added the *pipesize* parameter.
size of the pipe is only changed on platforms that support this (only Linux at this time of writing). Other platforms will ignore this parameter. .. versionchanged:: 3.10 Added the *pipesize* parameter.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8baa1857-e76c-45bb-816a-a5b3966fa64d
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,604
supabase-export-v2
7bea527cffb11625
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_output(args, *, stdin=None, stderr=None, shell=False, \ cwd=None, encoding=None, errors=None, \ univ...
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_output(args, *, stdin=None, stderr=None, shell=False, \ cwd=None, encoding=None, errors=None, \ univ...
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_output(args, *, stdin=None, stderr=None, shell=False, \ cwd=None, encoding=None, errors=None, \ univ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8d7f9604-93f8-437c-8d2c-47ed490aafb5
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,437
supabase-export-v2
b163c91f37cb6179
Exceptions raised in the child process, before the new program has started to execute, will be re-raised in the parent. The most common exception raised is :exc:`OSError`. This occurs, for example, when trying to execute a non-existent file. Applications should prepare for :exc:`OSError` exceptions. Note that, when ``s...
trusted_official_docs
CPython Docs
Exceptions raised in the child process, before the new program has started to execute, will be re-raised in the parent. The most common exception raised is :exc:`OSError`. This occurs, for example, when trying to execute a non-existent file. Applications should prepare for :exc:`OSError` exceptions. Note that, when ``s...
Exceptions raised in the child process, before the new program has started to execute, will be re-raised in the parent. The most common exception raised is :exc:`OSError`. This occurs, for example, when trying to execute a non-existent file. Applications should prepare for :exc:`OSError` exceptions. Note that, when ``s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8fd60a63-33ce-49c6-b9b3-bc79500a4e15
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,273
supabase-export-v2
356fd42c2419357d
the :class:`io.TextIOWrapper` default. The *universal_newlines* argument is equivalent to *text* and is provided for backwards compatibility. By default, file objects are opened in binary mode. If *env* is not ``None``, it must be a mapping that defines the environment variables for the new process; these are used ins...
trusted_official_docs
CPython Docs
the :class:`io.TextIOWrapper` default. The *universal_newlines* argument is equivalent to *text* and is provided for backwards compatibility. By default, file objects are opened in binary mode. If *env* is not ``None``, it must be a mapping that defines the environment variables for the new process; these are used ins...
the :class:`io.TextIOWrapper` default. The *universal_newlines* argument is equivalent to *text* and is provided for backwards compatibility. By default, file objects are opened in binary mode. If *env* is not ``None``, it must be a mapping that defines the environment variables for the new process; these are used ins...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8fe60c4c-d24f-4af7-a160-23fc902ef7a6
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,378
supabase-export-v2
7a19c972f86f8972
display name for the executable in utilities such as :program:`ps`. If ``shell=True``, on POSIX the *executable* argument specifies a replacement shell for the default :file:`/bin/sh`. .. versionchanged:: 3.6 *executable* parameter accepts a :term:`path-like object` on POSIX.
trusted_official_docs
CPython Docs
display name for the executable in utilities such as :program:`ps`. If ``shell=True``, on POSIX the *executable* argument specifies a replacement shell for the default :file:`/bin/sh`. .. versionchanged:: 3.6 *executable* parameter accepts a :term:`path-like object` on POSIX.
display name for the executable in utilities such as :program:`ps`. If ``shell=True``, on POSIX the *executable* argument specifies a replacement shell for the default :file:`/bin/sh`. .. versionchanged:: 3.6 *executable* parameter accepts a :term:`path-like object` on POSIX.
python, official-docs, cpython, P0
Local_Trusted_Corpus
931f30c3-307f-4553-bafd-ab4e2cdd1f3a
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,595
supabase-export-v2
8c798eb8c7b2732d
will have the return code in the :attr:`~CalledProcessError.returncode` attribute. If :func:`check_call` was unable to start the process it will propagate the exception that was raised. Code needing to capture stdout or stderr should use :func:`run` instead::
trusted_official_docs
CPython Docs
will have the return code in the :attr:`~CalledProcessError.returncode` attribute. If :func:`check_call` was unable to start the process it will propagate the exception that was raised. Code needing to capture stdout or stderr should use :func:`run` instead::
will have the return code in the :attr:`~CalledProcessError.returncode` attribute. If :func:`check_call` was unable to start the process it will propagate the exception that was raised. Code needing to capture stdout or stderr should use :func:`run` instead::
python, official-docs, cpython, P0
Local_Trusted_Corpus
944bba14-a7bd-4003-ad68-9dcb09648eba
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,316
supabase-export-v2
85f50baf79c095cf
.. attribute:: stderr Stderr output of the child process if it was captured by :func:`run`. Otherwise, ``None``. This is always :class:`bytes` when stderr output was captured regardless of the ``text=True`` setting. It may remain ``None`` instead of ``b''`` when no stderr output was observed.
trusted_official_docs
CPython Docs
.. attribute:: stderr Stderr output of the child process if it was captured by :func:`run`. Otherwise, ``None``. This is always :class:`bytes` when stderr output was captured regardless of the ``text=True`` setting. It may remain ``None`` instead of ``b''`` when no stderr output was observed.
.. attribute:: stderr Stderr output of the child process if it was captured by :func:`run`. Otherwise, ``None``. This is always :class:`bytes` when stderr output was captured regardless of the ``text=True`` setting. It may remain ``None`` instead of ``b''`` when no stderr output was observed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
972fc81e-1fa7-48ff-8bcb-19acced49299
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,438
supabase-export-v2
eaad1318558b2361
found. To determine if the shell failed to find the requested application, it is necessary to check the return code or output from the subprocess. A :exc:`ValueError` will be raised if :class:`Popen` is called with invalid arguments.
trusted_official_docs
CPython Docs
found. To determine if the shell failed to find the requested application, it is necessary to check the return code or output from the subprocess. A :exc:`ValueError` will be raised if :class:`Popen` is called with invalid arguments.
found. To determine if the shell failed to find the requested application, it is necessary to check the return code or output from the subprocess. A :exc:`ValueError` will be raised if :class:`Popen` is called with invalid arguments.
python, official-docs, cpython, P0
Local_Trusted_Corpus
98948b7f-887d-461c-98ad-0af4edf194ee
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,336
supabase-export-v2
8917a0e826e1b81c
single string, either *shell* must be :const:`True` (see below) or else the string must simply name the program to be executed without specifying any arguments. *stdin*, *stdout* and *stderr* specify the executed program's standard input, standard output and standard error file handles, respectively. Valid values are...
trusted_official_docs
CPython Docs
single string, either *shell* must be :const:`True` (see below) or else the string must simply name the program to be executed without specifying any arguments. *stdin*, *stdout* and *stderr* specify the executed program's standard input, standard output and standard error file handles, respectively. Valid values are...
single string, either *shell* must be :const:`True` (see below) or else the string must simply name the program to be executed without specifying any arguments. *stdin*, *stdout* and *stderr* specify the executed program's standard input, standard output and standard error file handles, respectively. Valid values are...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9898a006-42fa-4177-ac6b-a9ac9c6a4c9c
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,368
supabase-export-v2
4d28a8aaa42a2031
.. versionchanged:: 3.8 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing bytes and path-like objects on Windows. The *shell* argument (which defaults to ``False``) specifies whether to use the shell as the program to execute. If *shell* is ``True``, it is recommend...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.8 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing bytes and path-like objects on Windows. The *shell* argument (which defaults to ``False``) specifies whether to use the shell as the program to execute. If *shell* is ``True``, it is recommend...
.. versionchanged:: 3.8 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing bytes and path-like objects on Windows. The *shell* argument (which defaults to ``False``) specifies whether to use the shell as the program to execute. If *shell* is ``True``, it is recommend...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9972b8a4-f78a-4ca9-b739-3b9f088e51fd
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,445
supabase-export-v2
9fccb2a9be836b82
Security Considerations ----------------------- Unlike some other popen functions, this library will not implicitly choose to call a system shell. This means that all characters, including shell metacharacters, can safely be passed to child processes. If the shell is invoked explicitly, via ``shell=True``, it is the ap...
trusted_official_docs
CPython Docs
Security Considerations ----------------------- Unlike some other popen functions, this library will not implicitly choose to call a system shell. This means that all characters, including shell metacharacters, can safely be passed to child processes. If the shell is invoked explicitly, via ``shell=True``, it is the ap...
Security Considerations ----------------------- Unlike some other popen functions, this library will not implicitly choose to call a system shell. This means that all characters, including shell metacharacters, can safely be passed to child processes. If the shell is invoked explicitly, via ``shell=True``, it is the ap...
python, official-docs, cpython, P0
Local_Trusted_Corpus
99ce7b92-7e48-46e8-9063-c869daa60aff
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,487
supabase-export-v2
8b0612e1aa4b7f63
.. attribute:: Popen.stdin If the *stdin* argument was :data:`PIPE`, this attribute is a writeable stream object as returned by :func:`open`. If the *encoding* or *errors* arguments were specified or the *text* or *universal_newlines* argument was ``True``, the stream is a text stream, otherwise it is a byte stream....
trusted_official_docs
CPython Docs
.. attribute:: Popen.stdin If the *stdin* argument was :data:`PIPE`, this attribute is a writeable stream object as returned by :func:`open`. If the *encoding* or *errors* arguments were specified or the *text* or *universal_newlines* argument was ``True``, the stream is a text stream, otherwise it is a byte stream....
.. attribute:: Popen.stdin If the *stdin* argument was :data:`PIPE`, this attribute is a writeable stream object as returned by :func:`open`. If the *encoding* or *errors* arguments were specified or the *text* or *universal_newlines* argument was ``True``, the stream is a text stream, otherwise it is a byte stream....
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a7dc963-b00a-446a-8461-b5e70736f81f
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,431
supabase-export-v2
e0606092c139a651
.. audit-event:: subprocess.Popen executable,args,cwd,env subprocess.Popen Popen and the other functions in this module that use it raise an :ref:`auditing event <auditing>` ``subprocess.Popen`` with arguments ``executable``, ``args``, ``cwd``, and ``env``. The value for ``args`` may be a single string or a list of ...
trusted_official_docs
CPython Docs
.. audit-event:: subprocess.Popen executable,args,cwd,env subprocess.Popen Popen and the other functions in this module that use it raise an :ref:`auditing event <auditing>` ``subprocess.Popen`` with arguments ``executable``, ``args``, ``cwd``, and ``env``. The value for ``args`` may be a single string or a list of ...
.. audit-event:: subprocess.Popen executable,args,cwd,env subprocess.Popen Popen and the other functions in this module that use it raise an :ref:`auditing event <auditing>` ``subprocess.Popen`` with arguments ``executable``, ``args``, ``cwd``, and ``env``. The value for ``args`` may be a single string or a list of ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9af4c019-af4d-48d5-b4bd-17b3c2233caf
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,339
supabase-export-v2
c95938fb28086360
objects *stdin*, *stdout* and *stderr* will be opened in text mode using the *encoding* and *errors* specified in the call or the defaults for :class:`io.TextIOWrapper`. For *stdin*, line ending characters ``'\n'`` in the input will be converted to the default line separator :data:`os.linesep`. For *stdout* and *stder...
trusted_official_docs
CPython Docs
objects *stdin*, *stdout* and *stderr* will be opened in text mode using the *encoding* and *errors* specified in the call or the defaults for :class:`io.TextIOWrapper`. For *stdin*, line ending characters ``'\n'`` in the input will be converted to the default line separator :data:`os.linesep`. For *stdout* and *stder...
objects *stdin*, *stdout* and *stderr* will be opened in text mode using the *encoding* and *errors* specified in the call or the defaults for :class:`io.TextIOWrapper`. For *stdin*, line ending characters ``'\n'`` in the input will be converted to the default line separator :data:`os.linesep`. For *stdout* and *stder...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9b6d8a9f-48be-4e72-805b-ea1464a67d79
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,469
supabase-export-v2
44f6fc15d7acf2b0
will not lose any output. Supplying *input* to a subsequent post-timeout :meth:`communicate` call is in undefined behavior and may become an error in the future. The child 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 ...
trusted_official_docs
CPython Docs
will not lose any output. Supplying *input* to a subsequent post-timeout :meth:`communicate` call is in undefined behavior and may become an error in the future. The child 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 ...
will not lose any output. Supplying *input* to a subsequent post-timeout :meth:`communicate` call is in undefined behavior and may become an error in the future. The child 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 ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9b835d46-9f92-4a20-a3cd-c027a304ef08
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,257
supabase-export-v2
3231e63f88ffa417
-------------- The :mod:`!subprocess` module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several older modules and functions::
trusted_official_docs
CPython Docs
-------------- The :mod:`!subprocess` module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several older modules and functions::
-------------- The :mod:`!subprocess` module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several older modules and functions::
python, official-docs, cpython, P0
Local_Trusted_Corpus
9d50bbda-cd2a-4bf6-a9a2-359d7f322a36
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,500
supabase-export-v2
febf4789beead29d
A ``None`` value indicates that the process hadn't yet terminated at the time of the last method call. A negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only).
trusted_official_docs
CPython Docs
A ``None`` value indicates that the process hadn't yet terminated at the time of the last method call. A negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only).
A ``None`` value indicates that the process hadn't yet terminated at the time of the last method call. A negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only).
python, official-docs, cpython, P0
Local_Trusted_Corpus
9d5b7610-3627-4d99-a01c-06a65df7c787
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,345
supabase-export-v2
36be716c3062d076
The newlines attribute of the file objects :attr:`Popen.stdin`, :attr:`Popen.stdout` and :attr:`Popen.stderr` are not updated by the :meth:`Popen.communicate` method. If *shell* is ``True``, the specified command will be executed through the shell. This can be useful if you are using Python primarily for the enhanced...
trusted_official_docs
CPython Docs
The newlines attribute of the file objects :attr:`Popen.stdin`, :attr:`Popen.stdout` and :attr:`Popen.stderr` are not updated by the :meth:`Popen.communicate` method. If *shell* is ``True``, the specified command will be executed through the shell. This can be useful if you are using Python primarily for the enhanced...
The newlines attribute of the file objects :attr:`Popen.stdin`, :attr:`Popen.stdout` and :attr:`Popen.stderr` are not updated by the :meth:`Popen.communicate` method. If *shell* is ``True``, the specified command will be executed through the shell. This can be useful if you are using Python primarily for the enhanced...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9dceaf38-60a9-48e4-a4de-a265a83e6609
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,338
supabase-export-v2
429422659744e5be
.. index:: single: universal newlines; subprocess module If *encoding* or *errors* are specified, or *text* (also known as *universal_newlines*) is true, the file objects *stdin*, *stdout* and *stderr* will be opened in text mode using the *encoding* and *errors* specified in the call or the defaults for :class:`io...
trusted_official_docs
CPython Docs
.. index:: single: universal newlines; subprocess module If *encoding* or *errors* are specified, or *text* (also known as *universal_newlines*) is true, the file objects *stdin*, *stdout* and *stderr* will be opened in text mode using the *encoding* and *errors* specified in the call or the defaults for :class:`io...
.. index:: single: universal newlines; subprocess module If *encoding* or *errors* are specified, or *text* (also known as *universal_newlines*) is true, the file objects *stdin*, *stdout* and *stderr* will be opened in text mode using the *encoding* and *errors* specified in the call or the defaults for :class:`io...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a0f5004b-c0de-4ce0-9edd-946c9bfaeebc
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,290
supabase-export-v2
1881e26dc2abe57e
Exit status of the child process. Typically, an exit status of 0 indicates that it ran successfully. A negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only).
trusted_official_docs
CPython Docs
Exit status of the child process. Typically, an exit status of 0 indicates that it ran successfully. A negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only).
Exit status of the child process. Typically, an exit status of 0 indicates that it ran successfully. A negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only).
python, official-docs, cpython, P0
Local_Trusted_Corpus
a158dec1-2ceb-487b-9c3a-681b06f0eeaf
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,446
supabase-export-v2
95aed2e909feda5b
whitespace and metacharacters are quoted appropriately to avoid `shell injection <https://en.wikipedia.org/wiki/Shell_injection#Shell_injection>`_ vulnerabilities. On :ref:`some platforms <shlex-quote-warning>`, it is possible to use :func:`shlex.quote` for this escaping. On Windows, batch files (:file:`*.bat` or :file...
trusted_official_docs
CPython Docs
whitespace and metacharacters are quoted appropriately to avoid `shell injection <https://en.wikipedia.org/wiki/Shell_injection#Shell_injection>`_ vulnerabilities. On :ref:`some platforms <shlex-quote-warning>`, it is possible to use :func:`shlex.quote` for this escaping. On Windows, batch files (:file:`*.bat` or :file...
whitespace and metacharacters are quoted appropriately to avoid `shell injection <https://en.wikipedia.org/wiki/Shell_injection#Shell_injection>`_ vulnerabilities. On :ref:`some platforms <shlex-quote-warning>`, it is possible to use :func:`shlex.quote` for this escaping. On Windows, batch files (:file:`*.bat` or :file...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a24d18bf-e6dd-4031-a4b6-4c0b973e5c7d
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,498
supabase-export-v2
e7207809efbeafc8
.. attribute:: Popen.returncode The child 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.
trusted_official_docs
CPython Docs
.. attribute:: Popen.returncode The child 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.
.. attribute:: Popen.returncode The child 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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a2d5bc94-2fec-4344-bd8a-37b0105e0d1c
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,272
supabase-export-v2
e5b317c2973cbed9
code, a :exc:`CalledProcessError` exception will be raised. Attributes of that exception hold the arguments, the exit code, and stdout and stderr if they were captured. If *encoding* or *errors* are specified, or *text* is true, file objects for stdin, stdout and stderr are opened in text mode using the specified *en...
trusted_official_docs
CPython Docs
code, a :exc:`CalledProcessError` exception will be raised. Attributes of that exception hold the arguments, the exit code, and stdout and stderr if they were captured. If *encoding* or *errors* are specified, or *text* is true, file objects for stdin, stdout and stderr are opened in text mode using the specified *en...
code, a :exc:`CalledProcessError` exception will be raised. Attributes of that exception hold the arguments, the exit code, and stdout and stderr if they were captured. If *encoding* or *errors* are specified, or *text* is true, file objects for stdin, stdout and stderr are opened in text mode using the specified *en...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a3c21a84-2dde-4f9e-a47b-bf9a0693ce88
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,686
supabase-export-v2
e25e5b0fdbfa2cfd
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. 3. A double quotation mark preceded by a backslash is interpreted as a literal double quotation mark.
trusted_official_docs
CPython Docs
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. 3. A double quotation mark preceded by a backslash is interpreted as a literal double quotation mark.
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. 3. A double quotation mark preceded by a backslash is interpreted as a literal double quotation mark.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a404aa04-ebf8-4b9e-bc53-1640df56eb65
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,401
supabase-export-v2
5d76be906c54c8db
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.2 *restore_signals* was added.
trusted_official_docs
CPython Docs
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.2 *restore_signals* was added.
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.2 *restore_signals* was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a53da0f0-9deb-4039-b546-6764f0189fb7
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,582
supabase-export-v2
a771337f26fbfba4
three functions comprised the high level API to subprocess. You can now use :func:`run` in many cases, but lots of existing code calls these functions. .. function:: call(args, *, stdin=None, stdout=None, stderr=None, \ shell=False, cwd=None, timeout=None, **other_popen_kwargs)
trusted_official_docs
CPython Docs
three functions comprised the high level API to subprocess. You can now use :func:`run` in many cases, but lots of existing code calls these functions. .. function:: call(args, *, stdin=None, stdout=None, stderr=None, \ shell=False, cwd=None, timeout=None, **other_popen_kwargs)
three functions comprised the high level API to subprocess. You can now use :func:`run` in many cases, but lots of existing code calls these functions. .. function:: call(args, *, stdin=None, stdout=None, stderr=None, \ shell=False, cwd=None, timeout=None, **other_popen_kwargs)
python, official-docs, cpython, P0
Local_Trusted_Corpus
ad1e4bc4-1bb9-4188-895a-3653a5948715
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,369
supabase-export-v2
4c2b1f3cb8c7fa93
the shell as the program to execute. If *shell* is ``True``, it is recommended to pass *args* as a string rather than as a sequence. On POSIX with ``shell=True``, the shell defaults to :file:`/bin/sh`. If *args* is a string, the string specifies the command to execute through the shell. This means that the string mus...
trusted_official_docs
CPython Docs
the shell as the program to execute. If *shell* is ``True``, it is recommended to pass *args* as a string rather than as a sequence. On POSIX with ``shell=True``, the shell defaults to :file:`/bin/sh`. If *args* is a string, the string specifies the command to execute through the shell. This means that the string mus...
the shell as the program to execute. If *shell* is ``True``, it is recommended to pass *args* as a string rather than as a sequence. On POSIX with ``shell=True``, the shell defaults to :file:`/bin/sh`. If *args* is a string, the string specifies the command to execute through the shell. This means that the string mus...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae79dba6-156b-40a2-afb3-38c4b99b5a38
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,292
supabase-export-v2
d5583779cd06d0cf
.. attribute:: stdout Captured stdout from 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.
trusted_official_docs
CPython Docs
.. attribute:: stdout Captured stdout from 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.
.. attribute:: stdout Captured stdout from 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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
af4fcc42-c608-4bfe-99c7-9dce126d8495
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,404
supabase-export-v2
c5e9fb0ce18975dc
.. availability:: POSIX .. versionchanged:: 3.2 *start_new_session* was added. If *process_group* is a non-negative integer, the ``setpgid(0, value)`` system call will be made in the child process prior to the execution of the subprocess.
trusted_official_docs
CPython Docs
.. availability:: POSIX .. versionchanged:: 3.2 *start_new_session* was added. If *process_group* is a non-negative integer, the ``setpgid(0, value)`` 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 *process_group* is a non-negative integer, the ``setpgid(0, value)`` system call will be made in the child process prior to the execution of the subprocess.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b2385477-0009-4d87-8f4a-b7380e62dea1
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,440
supabase-export-v2
1e1f497f94056ee1
:func:`check_call` and :func:`check_output` will raise :exc:`CalledProcessError` if the called process returns a non-zero return code. All of the functions and methods that accept a *timeout* parameter, such as :func:`run` and :meth:`Popen.communicate` will raise :exc:`TimeoutExpired` if the timeout expires before the ...
trusted_official_docs
CPython Docs
:func:`check_call` and :func:`check_output` will raise :exc:`CalledProcessError` if the called process returns a non-zero return code. All of the functions and methods that accept a *timeout* parameter, such as :func:`run` and :meth:`Popen.communicate` will raise :exc:`TimeoutExpired` if the timeout expires before the ...
:func:`check_call` and :func:`check_output` will raise :exc:`CalledProcessError` if the called process returns a non-zero return code. All of the functions and methods that accept a *timeout* parameter, such as :func:`run` and :meth:`Popen.communicate` will raise :exc:`TimeoutExpired` if the timeout expires before the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b2f6f391-a20e-4bb4-84d2-b4fc1e29d5a7
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,455
supabase-export-v2
1623138eca1e1e92
.. note:: This will deadlock when using ``stdout=PIPE`` or ``stderr=PIPE`` and the child process generates enough output to a pipe such that it blocks waiting for the OS pipe buffer to accept more data. Use :meth:`Popen.communicate` when using pipes to avoid that.
trusted_official_docs
CPython Docs
.. note:: This will deadlock when using ``stdout=PIPE`` or ``stderr=PIPE`` and the child process generates enough output to a pipe such that it blocks waiting for the OS pipe buffer to accept more data. Use :meth:`Popen.communicate` when using pipes to avoid that.
.. note:: This will deadlock when using ``stdout=PIPE`` or ``stderr=PIPE`` and the child process generates enough output to a pipe such that it blocks waiting for the OS pipe buffer to accept more data. Use :meth:`Popen.communicate` when using pipes to avoid that.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b37bc57b-8d00-416d-8675-6c0ce486d7ed
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,501
supabase-export-v2
64708dc102d724f2
A negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only). When ``shell=True``, the return code reflects the exit status of the shell itself (e.g. ``/bin/sh``), which may map signals to codes such as ``128+N``. See the documentation of the shell (for example, the Bash manual's Exit...
trusted_official_docs
CPython Docs
A negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only). When ``shell=True``, the return code reflects the exit status of the shell itself (e.g. ``/bin/sh``), which may map signals to codes such as ``128+N``. See the documentation of the shell (for example, the Bash manual's Exit...
A negative value ``-N`` indicates that the child was terminated by signal ``N`` (POSIX only). When ``shell=True``, the return code reflects the exit status of the shell itself (e.g. ``/bin/sh``), which may map signals to codes such as ``128+N``. See the documentation of the shell (for example, the Bash manual's Exit...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b4b0c8ae-3599-42a2-8feb-b01292b599cc
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,643
supabase-export-v2
12df52687f585d83
* Calling the program through the shell is usually not required. * The :func:`call` return value is encoded differently to that of :func:`os.system`. * 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:`!subproces...
trusted_official_docs
CPython Docs
* Calling the program through the shell is usually not required. * The :func:`call` return value is encoded differently to that of :func:`os.system`. * 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:`!subproces...
* Calling the program through the shell is usually not required. * The :func:`call` return value is encoded differently to that of :func:`os.system`. * 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:`!subproces...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b5337422-01ba-4d7b-9ebe-cb9048114d34
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,270
supabase-export-v2
60a94cd3c2c36485
be interrupted on many platform APIs so you are not guaranteed to see a timeout exception until at least after however long process creation takes. The *input* argument is passed to :meth:`Popen.communicate` and thus to the subprocess's stdin. If used it must be a byte sequence, or a string if *encoding* or *errors* ...
trusted_official_docs
CPython Docs
be interrupted on many platform APIs so you are not guaranteed to see a timeout exception until at least after however long process creation takes. The *input* argument is passed to :meth:`Popen.communicate` and thus to the subprocess's stdin. If used it must be a byte sequence, or a string if *encoding* or *errors* ...
be interrupted on many platform APIs so you are not guaranteed to see a timeout exception until at least after however long process creation takes. The *input* argument is passed to :meth:`Popen.communicate` and thus to the subprocess's stdin. If used it must be a byte sequence, or a string if *encoding* or *errors* ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b6ae5d82-7b97-49e5-8e07-781c9c0ed1ed
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,432
supabase-export-v2
c2b7429492275156
``subprocess.Popen`` with arguments ``executable``, ``args``, ``cwd``, and ``env``. The value for ``args`` may be a single string or a list of strings, depending on platform. .. versionchanged:: 3.2 Added context manager support.
trusted_official_docs
CPython Docs
``subprocess.Popen`` with arguments ``executable``, ``args``, ``cwd``, and ``env``. The value for ``args`` may be a single string or a list of strings, depending on platform. .. versionchanged:: 3.2 Added context manager support.
``subprocess.Popen`` with arguments ``executable``, ``args``, ``cwd``, and ``env``. The value for ``args`` may be a single string or a list of strings, depending on platform. .. versionchanged:: 3.2 Added context manager support.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b8cde99b-2aaa-4f8e-9878-19e3950c89ca
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,645
supabase-export-v2
4158aaf88c3c795c
A more realistic example would look like this:: try: retcode = call("mycmd" + " myarg", 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)
trusted_official_docs
CPython Docs
A more realistic example would look like this:: try: retcode = call("mycmd" + " myarg", 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)
A more realistic example would look like this:: try: retcode = call("mycmd" + " myarg", 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)
python, official-docs, cpython, P0
Local_Trusted_Corpus
b9de8f09-45b4-441e-8ec5-ff34da1d3e13
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,589
supabase-export-v2
59568c5de4e6ae60
.. note:: Do not use ``stdout=PIPE`` or ``stderr=PIPE`` with this function. The child process will block if it generates enough output to a pipe to fill up the OS pipe buffer as the pipes are not being read from.
trusted_official_docs
CPython Docs
.. note:: Do not use ``stdout=PIPE`` or ``stderr=PIPE`` with this function. The child process will block if it generates enough output to a pipe to fill up the OS pipe buffer as the pipes are not being read from.
.. note:: Do not use ``stdout=PIPE`` or ``stderr=PIPE`` with this function. The child process will block if it generates enough output to a pipe to fill up the OS pipe buffer as the pipes are not being read from.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b9e73d08-6d6f-4015-9aa4-5814bd9f134d
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,346
supabase-export-v2
e1c147b19d35267f
to a user's home directory. However, note that Python itself offers implementations of many shell-like features (in particular, :mod:`glob`, :mod:`fnmatch`, :func:`os.walk`, :func:`os.path.expandvars`, :func:`os.path.expanduser`, and :mod:`shutil`). .. versionchanged:: 3.3 When *universal_newlines* is ``True``, the cl...
trusted_official_docs
CPython Docs
to a user's home directory. However, note that Python itself offers implementations of many shell-like features (in particular, :mod:`glob`, :mod:`fnmatch`, :func:`os.walk`, :func:`os.path.expandvars`, :func:`os.path.expanduser`, and :mod:`shutil`). .. versionchanged:: 3.3 When *universal_newlines* is ``True``, the cl...
to a user's home directory. However, note that Python itself offers implementations of many shell-like features (in particular, :mod:`glob`, :mod:`fnmatch`, :func:`os.walk`, :func:`os.path.expandvars`, :func:`os.path.expanduser`, and :mod:`shutil`). .. versionchanged:: 3.3 When *universal_newlines* is ``True``, the cl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
baa4fa27-25d5-4490-b7e1-709a7cb09e2b
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,634
supabase-export-v2
1f0ad91db7356f6c
p1 = Popen(["dmesg"], stdout=PIPE) p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE) p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits. output = p2.communicate()[0] The ``p1.stdout.close()`` call after starting the p2 is important in order for p1 to receive a SIGPIPE if p2 exits before p1.
trusted_official_docs
CPython Docs
p1 = Popen(["dmesg"], stdout=PIPE) p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE) p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits. output = p2.communicate()[0] The ``p1.stdout.close()`` call after starting the p2 is important in order for p1 to receive a SIGPIPE if p2 exits before p1.
p1 = Popen(["dmesg"], stdout=PIPE) p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE) p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits. output = p2.communicate()[0] The ``p1.stdout.close()`` call after starting the p2 is important in order for p1 to receive a SIGPIPE if p2 exits before p1.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bc229ecd-071a-46f9-9224-41a3448293f0
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,696
supabase-export-v2
b67ad3472f28eefc
subprocess._USE_POSIX_SPAWN = False # See CPython issue gh-NNNNNN. It is safe to set this to false on any Python version. It will have no effect on older or newer versions where unsupported. Do not assume the attribute is available to read. Despite the name, a true value does not indicate the corresponding function wil...
trusted_official_docs
CPython Docs
subprocess._USE_POSIX_SPAWN = False # See CPython issue gh-NNNNNN. It is safe to set this to false on any Python version. It will have no effect on older or newer versions where unsupported. Do not assume the attribute is available to read. Despite the name, a true value does not indicate the corresponding function wil...
subprocess._USE_POSIX_SPAWN = False # See CPython issue gh-NNNNNN. It is safe to set this to false on any Python version. It will have no effect on older or newer versions where unsupported. Do not assume the attribute is available to read. Despite the name, a true value does not indicate the corresponding function wil...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bc56c37f-12bf-47d0-b5d9-04f7239ac22d
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,418
supabase-export-v2
2b9b5e0e9b550441
.. note:: If specified, *env* must provide any variables required for the program to execute. On Windows, in order to run a `side-by-side assembly`_ the specified *env* **must** include a valid ``%SystemRoot%``.
trusted_official_docs
CPython Docs
.. note:: If specified, *env* must provide any variables required for the program to execute. On Windows, in order to run a `side-by-side assembly`_ the specified *env* **must** include a valid ``%SystemRoot%``.
.. note:: If specified, *env* must provide any variables required for the program to execute. On Windows, in order to run a `side-by-side assembly`_ the specified *env* **must** include a valid ``%SystemRoot%``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bcbf8cf5-d147-48c9-a5e0-dbe96a92b3d9
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,356
supabase-export-v2
c6288eb4f5a30962
.. warning:: For maximum reliability, use a fully qualified path for the executable. To search for an unqualified name on :envvar:`PATH`, use :meth:`shutil.which`. On all platforms, passing :data:`sys.executable` is the recommended way to launch the current Python interpreter again, and use the ``-m`` command-line f...
trusted_official_docs
CPython Docs
.. warning:: For maximum reliability, use a fully qualified path for the executable. To search for an unqualified name on :envvar:`PATH`, use :meth:`shutil.which`. On all platforms, passing :data:`sys.executable` is the recommended way to launch the current Python interpreter again, and use the ``-m`` command-line f...
.. warning:: For maximum reliability, use a fully qualified path for the executable. To search for an unqualified name on :envvar:`PATH`, use :meth:`shutil.which`. On all platforms, passing :data:`sys.executable` is the recommended way to launch the current Python interpreter again, and use the ``-m`` command-line f...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bd8a7011-a641-4aca-95b8-21ace303545b
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,441
supabase-export-v2
8b1f7eb6fd9960ef
the functions and methods that accept a *timeout* parameter, such as :func:`run` and :meth:`Popen.communicate` will raise :exc:`TimeoutExpired` if the timeout expires before the process exits. Exceptions defined in this module all inherit from :exc:`SubprocessError`.
trusted_official_docs
CPython Docs
the functions and methods that accept a *timeout* parameter, such as :func:`run` and :meth:`Popen.communicate` will raise :exc:`TimeoutExpired` if the timeout expires before the process exits. Exceptions defined in this module all inherit from :exc:`SubprocessError`.
the functions and methods that accept a *timeout* parameter, such as :func:`run` and :meth:`Popen.communicate` will raise :exc:`TimeoutExpired` if the timeout expires before the process exits. Exceptions defined in this module all inherit from :exc:`SubprocessError`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c014f904-01b5-41cb-9dbb-f5f5d471aea2
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,367
supabase-export-v2
25496c91d6fba61c
.. versionchanged:: 3.6 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing path-like objects on POSIX. .. versionchanged:: 3.8 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing bytes and path-like objects on Window...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.6 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing path-like objects on POSIX. .. versionchanged:: 3.8 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing bytes and path-like objects on Window...
.. versionchanged:: 3.6 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing path-like objects on POSIX. .. versionchanged:: 3.8 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing bytes and path-like objects on Window...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c05e2a4e-8fe0-4950-a52d-4430b02f9792
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,387
supabase-export-v2
b91e32f016ebbd77
.. note:: If you need to modify the environment for the child use the *env* parameter rather than doing it in a *preexec_fn*. The *start_new_session* and *process_group* parameters should take the place of code using *preexec_fn* to call :func:`os.setsid` or :func:`os.setpgid` in the child.
trusted_official_docs
CPython Docs
.. note:: If you need to modify the environment for the child use the *env* parameter rather than doing it in a *preexec_fn*. The *start_new_session* and *process_group* parameters should take the place of code using *preexec_fn* to call :func:`os.setsid` or :func:`os.setpgid` in the child.
.. note:: If you need to modify the environment for the child use the *env* parameter rather than doing it in a *preexec_fn*. The *start_new_session* and *process_group* parameters should take the place of code using *preexec_fn* to call :func:`os.setsid` or :func:`os.setpgid` in the child.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c1e972c5-2df4-46d4-bf31-ae4fa5135a26
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,283
supabase-export-v2
0aec57a79562d575
.. versionchanged:: 3.12 Changed Windows shell search order for ``shell=True``. The current 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.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.12 Changed Windows shell search order for ``shell=True``. The current 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.
.. versionchanged:: 3.12 Changed Windows shell search order for ``shell=True``. The current 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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c27d4ffb-5900-408a-bcca-8121e878b66f
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,268
supabase-export-v2
18fb3eee332e8eb2
of the :class:`Popen` constructor - most of the arguments to this function are passed through to that interface. (*timeout*, *input*, *check*, and *capture_output* are not.) If *capture_output* is true, stdout and stderr will be captured. When used, the internal :class:`Popen` object is automatically created with *std...
trusted_official_docs
CPython Docs
of the :class:`Popen` constructor - most of the arguments to this function are passed through to that interface. (*timeout*, *input*, *check*, and *capture_output* are not.) If *capture_output* is true, stdout and stderr will be captured. When used, the internal :class:`Popen` object is automatically created with *std...
of the :class:`Popen` constructor - most of the arguments to this function are passed through to that interface. (*timeout*, *input*, *check*, and *capture_output* are not.) If *capture_output* is true, stdout and stderr will be captured. When used, the internal :class:`Popen` object is automatically created with *std...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c28f2317-d062-4d64-800f-e27b44eaf7c9
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,664
supabase-export-v2
16a6adfbb32de761
A trailing newline is stripped from the output. The exit code for the command can be interpreted as the return code of subprocess. Example:: >>> subprocess.getstatusoutput('ls /bin/ls') (0, '/bin/ls') >>> subprocess.getstatusoutput('cat /bin/junk') (1, 'cat: /bin/junk: No such file or directory') >>> subprocess.get...
trusted_official_docs
CPython Docs
A trailing newline is stripped from the output. The exit code for the command can be interpreted as the return code of subprocess. Example:: >>> subprocess.getstatusoutput('ls /bin/ls') (0, '/bin/ls') >>> subprocess.getstatusoutput('cat /bin/junk') (1, 'cat: /bin/junk: No such file or directory') >>> subprocess.get...
A trailing newline is stripped from the output. The exit code for the command can be interpreted as the return code of subprocess. Example:: >>> subprocess.getstatusoutput('ls /bin/ls') (0, '/bin/ls') >>> subprocess.getstatusoutput('cat /bin/junk') (1, 'cat: /bin/junk: No such file or directory') >>> subprocess.get...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c4db80c8-195a-40a8-8f76-7ce429541c73
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,551
supabase-export-v2
836a864d3c67d4a9
A :class:`Popen` ``creationflags`` parameter to specify that a new process group will be created. This flag is necessary for using :func:`os.kill` on the subprocess. This flag is ignored if :data:`CREATE_NEW_CONSOLE` is specified.
trusted_official_docs
CPython Docs
A :class:`Popen` ``creationflags`` parameter to specify that a new process group will be created. This flag is necessary for using :func:`os.kill` on the subprocess. This flag is ignored if :data:`CREATE_NEW_CONSOLE` is specified.
A :class:`Popen` ``creationflags`` parameter to specify that a new process group will be created. This flag is necessary for using :func:`os.kill` on the subprocess. This flag is ignored if :data:`CREATE_NEW_CONSOLE` is specified.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c5ca37f3-7361-4533-b895-6a8ab5767292
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,610
supabase-export-v2
40feeda4e4bd239d
behavior exists: passing ``input=None`` will behave the same as ``input=b''`` (or ``input=''``, depending on other arguments) rather than using the parent's standard input file handle. By default, this function will return the data as encoded bytes. The actual encoding of the output data may depend on the command bein...
trusted_official_docs
CPython Docs
behavior exists: passing ``input=None`` will behave the same as ``input=b''`` (or ``input=''``, depending on other arguments) rather than using the parent's standard input file handle. By default, this function will return the data as encoded bytes. The actual encoding of the output data may depend on the command bein...
behavior exists: passing ``input=None`` will behave the same as ``input=b''`` (or ``input=''``, depending on other arguments) rather than using the parent's standard input file handle. By default, this function will return the data as encoded bytes. The actual encoding of the output data may depend on the command bein...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c5f76013-b4f2-48fd-aee0-15f8a4226c52
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,581
supabase-export-v2
8d242c30917663d0
Older high-level API -------------------- Prior to Python 3.5, these three functions comprised the high level API to subprocess. You can now use :func:`run` in many cases, but lots of existing code calls these functions.
trusted_official_docs
CPython Docs
Older high-level API -------------------- Prior to Python 3.5, these three functions comprised the high level API to subprocess. You can now use :func:`run` in many cases, but lots of existing code calls these functions.
Older high-level API -------------------- Prior to Python 3.5, these three functions comprised the high level API to subprocess. You can now use :func:`run` in many cases, but lots of existing code calls these functions.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c975022d-648f-4ef6-8ab5-38625b825d43
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,405
supabase-export-v2
e101e5bc44b32c6a
If *process_group* is a non-negative integer, the ``setpgid(0, value)`` system call will be made in the child process prior to the execution of the subprocess. .. availability:: POSIX .. versionchanged:: 3.11 *process_group* was added.
trusted_official_docs
CPython Docs
If *process_group* is a non-negative integer, the ``setpgid(0, value)`` system call will be made in the child process prior to the execution of the subprocess. .. availability:: POSIX .. versionchanged:: 3.11 *process_group* was added.
If *process_group* is a non-negative integer, the ``setpgid(0, value)`` system call will be made in the child process prior to the execution of the subprocess. .. availability:: POSIX .. versionchanged:: 3.11 *process_group* was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c9816410-e30b-425d-a587-5883e69aff72
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,471
supabase-export-v2
bd6f8f0302772e6b
proc = subprocess.Popen(...) try: outs, errs = proc.communicate(timeout=15) except TimeoutExpired: proc.kill() outs, errs = proc.communicate() After a call to :meth:`~Popen.communicate` raises :exc:`TimeoutExpired`, do not call :meth:`~Popen.wait`. Use an additional :meth:`~Popen.communicate` call to finish handling ...
trusted_official_docs
CPython Docs
proc = subprocess.Popen(...) try: outs, errs = proc.communicate(timeout=15) except TimeoutExpired: proc.kill() outs, errs = proc.communicate() After a call to :meth:`~Popen.communicate` raises :exc:`TimeoutExpired`, do not call :meth:`~Popen.wait`. Use an additional :meth:`~Popen.communicate` call to finish handling ...
proc = subprocess.Popen(...) try: outs, errs = proc.communicate(timeout=15) except TimeoutExpired: proc.kill() outs, errs = proc.communicate() After a call to :meth:`~Popen.communicate` raises :exc:`TimeoutExpired`, do not call :meth:`~Popen.wait`. Use an additional :meth:`~Popen.communicate` call to finish handling ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cc057e4f-6534-490b-a8d5-b4798361f4f3
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,590
supabase-export-v2
83566e166a69f5b7
will block if it generates enough output to a pipe to fill up the OS pipe buffer as the pipes are not being read from. .. versionchanged:: 3.3 *timeout* was added.
trusted_official_docs
CPython Docs
will block if it generates enough output to a pipe to fill up the OS pipe buffer as the pipes are not being read from. .. versionchanged:: 3.3 *timeout* was added.
will block if it generates enough output to a pipe to fill up the OS pipe buffer as the pipes are not being read from. .. versionchanged:: 3.3 *timeout* was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cc6fa0d7-078e-47b8-9cad-05344a75fedc
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,335
supabase-export-v2
ad4803cd74a5397a
For most typical use cases, many of these arguments can be safely left at their default values. The arguments that are most commonly needed are: *args* is required for all calls and should be a string, or a sequence of program arguments. Providing a sequence of arguments is generally preferred, as it allows the modul...
trusted_official_docs
CPython Docs
For most typical use cases, many of these arguments can be safely left at their default values. The arguments that are most commonly needed are: *args* is required for all calls and should be a string, or a sequence of program arguments. Providing a sequence of arguments is generally preferred, as it allows the modul...
For most typical use cases, many of these arguments can be safely left at their default values. The arguments that are most commonly needed are: *args* is required for all calls and should be a string, or a sequence of program arguments. Providing a sequence of arguments is generally preferred, as it allows the modul...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ce2db182-8422-4db3-a93e-4f8ff7813463
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,657
supabase-export-v2
a0ec0c8de78c9bbc
Return code handling translates as follows:: pipe = os.popen(cmd, 'w') ... rc = pipe.close() if rc is 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")
trusted_official_docs
CPython Docs
Return code handling translates as follows:: pipe = os.popen(cmd, 'w') ... rc = pipe.close() if rc is 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")
Return code handling translates as follows:: pipe = os.popen(cmd, 'w') ... rc = pipe.close() if rc is 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")
python, official-docs, cpython, P0
Local_Trusted_Corpus
cf718f5f-2dd7-43eb-9813-5a52d2b4c27f
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,389
supabase-export-v2
f3062cffb092b9f5
.. versionchanged:: 3.8 The *preexec_fn* parameter is no longer supported in subinterpreters. The 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.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.8 The *preexec_fn* parameter is no longer supported in subinterpreters. The 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.
.. versionchanged:: 3.8 The *preexec_fn* parameter is no longer supported in subinterpreters. The 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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d27916b4-a32c-4828-826e-68533b893fd5
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,376
supabase-export-v2
415efd750ca693e6
other positive value means use a buffer of approximately that size - negative bufsize (the default) means the system default of io.DEFAULT_BUFFER_SIZE will be used. .. versionchanged:: 3.3.1 *bufsize* now defaults to -1 to enable buffering by default to match the behavior that most code expects. In versions prior to ...
trusted_official_docs
CPython Docs
other positive value means use a buffer of approximately that size - negative bufsize (the default) means the system default of io.DEFAULT_BUFFER_SIZE will be used. .. versionchanged:: 3.3.1 *bufsize* now defaults to -1 to enable buffering by default to match the behavior that most code expects. In versions prior to ...
other positive value means use a buffer of approximately that size - negative bufsize (the default) means the system default of io.DEFAULT_BUFFER_SIZE will be used. .. versionchanged:: 3.3.1 *bufsize* now defaults to -1 to enable buffering by default to match the behavior that most code expects. In versions prior to ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d5e700da-90af-4403-b0bc-665af6fac997
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,413
supabase-export-v2
4334ed3ddc26c80d
will not drop existing supplementary group memberships! The caller must also pass ``extra_groups=()`` to reduce the group membership of the child process for security purposes. .. availability:: POSIX .. versionadded:: 3.9
trusted_official_docs
CPython Docs
will not drop existing supplementary group memberships! The caller must also pass ``extra_groups=()`` to reduce the group membership of the child process for security purposes. .. availability:: POSIX .. versionadded:: 3.9
will not drop existing supplementary group memberships! The caller must also pass ``extra_groups=()`` to reduce the group membership of the child process for security purposes. .. availability:: POSIX .. versionadded:: 3.9
python, official-docs, cpython, P0
Local_Trusted_Corpus
d63a6700-f144-41d5-9610-fcf8e9e96fc6
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,366
supabase-export-v2
761c3b65dd04c9dc
is a sequence, it will be converted to a string in a manner described in :ref:`converting-argument-sequence`. This is because the underlying ``CreateProcess()`` operates on strings. .. versionchanged:: 3.6 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing path-like ...
trusted_official_docs
CPython Docs
is a sequence, it will be converted to a string in a manner described in :ref:`converting-argument-sequence`. This is because the underlying ``CreateProcess()`` operates on strings. .. versionchanged:: 3.6 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing path-like ...
is a sequence, it will be converted to a string in a manner described in :ref:`converting-argument-sequence`. This is because the underlying ``CreateProcess()`` operates on strings. .. versionchanged:: 3.6 *args* parameter accepts a :term:`path-like object` if *shell* is ``False`` and a sequence containing path-like ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
dba08696-86a7-4ceb-b1a0-073415687d9b
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,483
supabase-export-v2
8ae7a8f16cabbba4
Kills the child. On POSIX OSs the function sends SIGKILL to the child. On Windows :meth:`kill` is an alias for :meth:`terminate`. The following attributes are also set by the class for you to access. Reassigning them to new values is unsupported:
trusted_official_docs
CPython Docs
Kills the child. On POSIX OSs the function sends SIGKILL to the child. On Windows :meth:`kill` is an alias for :meth:`terminate`. The following attributes are also set by the class for you to access. Reassigning them to new values is unsupported:
Kills the child. On POSIX OSs the function sends SIGKILL to the child. On Windows :meth:`kill` is an alias for :meth:`terminate`. The following attributes are also set by the class for you to access. Reassigning them to new values is unsupported:
python, official-docs, cpython, P0
Local_Trusted_Corpus
dbb0a146-c97a-4fd9-9a60-9d0da70a21ae
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,382
supabase-export-v2
35e4eb27b80abddb
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. *stdin*, *stdout* and *stderr* specify the executed program's standard input, standard output and standard error file han...
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. *stdin*, *stdout* and *stderr* specify the executed program's standard input, standard output and standard error file han...
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. *stdin*, *stdout* and *stderr* specify the executed program's standard input, standard output and standard error file han...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ddc8788b-10de-4163-b574-eb6c72f732d0
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,276
supabase-export-v2
544dc1df2c62bfaa
>>> subprocess.run(["ls", "-l"]) # doesn't capture output CompletedProcess(args=['ls', '-l'], returncode=0) >>> subprocess.run("exit 1", shell=True, check=True) Traceback (most recent call last): ... subprocess.CalledProcessError: Command 'exit 1' returned non-zero exit status 1
trusted_official_docs
CPython Docs
>>> subprocess.run(["ls", "-l"]) # doesn't capture output CompletedProcess(args=['ls', '-l'], returncode=0) >>> 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"]) # doesn't capture output CompletedProcess(args=['ls', '-l'], returncode=0) >>> subprocess.run("exit 1", shell=True, check=True) Traceback (most recent call last): ... subprocess.CalledProcessError: Command 'exit 1' returned non-zero exit status 1
python, official-docs, cpython, P0
Local_Trusted_Corpus
e4275b84-2e30-416a-953d-57b7484eefc5
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,269
supabase-export-v2
6a05aa007e229a9d
as *capture_output*. If you wish to capture and combine both streams into one, set *stdout* to :data:`~subprocess.PIPE` and *stderr* to :data:`~subprocess.STDOUT`, instead of using *capture_output*. A *timeout* may be specified in seconds, it is internally passed on to :meth:`Popen.communicate`. If the timeout expires...
trusted_official_docs
CPython Docs
as *capture_output*. If you wish to capture and combine both streams into one, set *stdout* to :data:`~subprocess.PIPE` and *stderr* to :data:`~subprocess.STDOUT`, instead of using *capture_output*. A *timeout* may be specified in seconds, it is internally passed on to :meth:`Popen.communicate`. If the timeout expires...
as *capture_output*. If you wish to capture and combine both streams into one, set *stdout* to :data:`~subprocess.PIPE` and *stderr* to :data:`~subprocess.STDOUT`, instead of using *capture_output*. A *timeout* may be specified in seconds, it is internally passed on to :meth:`Popen.communicate`. If the timeout expires...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e60bc3e9-e358-4196-8b90-6f1615a1cf0b
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,407
supabase-export-v2
5a7fd4a0a3970b3f
looked up via :func:`grp.getgrnam` and the value in ``gr_gid`` will be used. If the value is an integer, it will be passed verbatim. (POSIX only) .. availability:: POSIX .. versionadded:: 3.9
trusted_official_docs
CPython Docs
looked up via :func:`grp.getgrnam` and the value in ``gr_gid`` will be used. If the value is an integer, it will be passed verbatim. (POSIX only) .. availability:: POSIX .. versionadded:: 3.9
looked up via :func:`grp.getgrnam` and the value in ``gr_gid`` will be used. If the value is an integer, it will be passed verbatim. (POSIX only) .. availability:: POSIX .. versionadded:: 3.9
python, official-docs, cpython, P0
Local_Trusted_Corpus
e6498d75-80c9-4cfb-9108-ffa7551f9ef3
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,363
supabase-export-v2
178a88a8959bc3a5
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*:: >>> import shlex, subprocess >>> command_line = input() /bin/vikings -input eggs.txt -output "spam spam.txt" -cmd "echo '$MONEY'" >>> args = sh...
trusted_official_docs
CPython Docs
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*:: >>> import shlex, subprocess >>> command_line = input() /bin/vikings -input eggs.txt -output "spam spam.txt" -cmd "echo '$MONEY'" >>> args = sh...
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*:: >>> import shlex, subprocess >>> command_line = input() /bin/vikings -input eggs.txt -output "spam spam.txt" -cmd "echo '$MONEY'" >>> args = sh...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e7b3b356-c273-4759-82eb-606b852d7fc3
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,371
supabase-export-v2
afa98e73205f297c
Popen(['/bin/sh', '-c', args[0], args[1], ...]) On Windows with ``shell=True``, the :envvar:`COMSPEC` environment variable specifies the default shell. The only time you need to specify ``shell=True`` on Windows is when the command you wish to execute is built into the shell (e.g. :command:`dir` or :command:`copy`)....
trusted_official_docs
CPython Docs
Popen(['/bin/sh', '-c', args[0], args[1], ...]) On Windows with ``shell=True``, the :envvar:`COMSPEC` environment variable specifies the default shell. The only time you need to specify ``shell=True`` on Windows is when the command you wish to execute is built into the shell (e.g. :command:`dir` or :command:`copy`)....
Popen(['/bin/sh', '-c', args[0], args[1], ...]) On Windows with ``shell=True``, the :envvar:`COMSPEC` environment variable specifies the default shell. The only time you need to specify ``shell=True`` on Windows is when the command you wish to execute is built into the shell (e.g. :command:`dir` or :command:`copy`)....
python, official-docs, cpython, P0
Local_Trusted_Corpus
ecefcab5-9e78-4ac1-ba16-61452fc41710
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,515
supabase-export-v2
b25d30063e3b781b
.. attribute:: hStdError If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is the standard error handle for the process. Otherwise, this attribute is ignored and the default for standard error is the console window's buffer.
trusted_official_docs
CPython Docs
.. attribute:: hStdError If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is the standard error handle for the process. Otherwise, this attribute is ignored and the default for standard error is the console window's buffer.
.. attribute:: hStdError If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is the standard error handle for the process. Otherwise, this attribute is ignored and the default for standard error is the console window's buffer.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ee5ebf00-43a0-4b18-a30c-4a4a955aaf62
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,612
supabase-export-v2
53964fc6cdfe3b32
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`. To also capture standard error in the result, use ``stderr=subprocess.STDOUT``::
trusted_official_docs
CPython Docs
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`. To also capture standard error in the result, use ``stderr=subprocess.STDOUT``::
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`. To also capture standard error in the result, use ``stderr=subprocess.STDOUT``::
python, official-docs, cpython, P0
Local_Trusted_Corpus
f0aa7cd1-ceb0-46be-85a2-4ee0e5c96e94
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,679
supabase-export-v2
60e818aea50fe901
When using the ``timeout`` parameter in functions like :func:`run`, :meth:`Popen.wait`, or :meth:`Popen.communicate`, users should be aware of the following behaviors: 1. **Process Creation Delay**: The initial process creation itself cannot be interrupted on many platform APIs. This means that even when specifying a ...
trusted_official_docs
CPython Docs
When using the ``timeout`` parameter in functions like :func:`run`, :meth:`Popen.wait`, or :meth:`Popen.communicate`, users should be aware of the following behaviors: 1. **Process Creation Delay**: The initial process creation itself cannot be interrupted on many platform APIs. This means that even when specifying a ...
When using the ``timeout`` parameter in functions like :func:`run`, :meth:`Popen.wait`, or :meth:`Popen.communicate`, users should be aware of the following behaviors: 1. **Process Creation Delay**: The initial process creation itself cannot be interrupted on many platform APIs. This means that even when specifying a ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f38fd986-c7e4-4275-9523-f7da72520c46
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,352
supabase-export-v2
a2c350c74fb47dde
:class:`Popen` class. It offers a lot of flexibility so that developers are able to handle the less common cases not covered by the convenience functions. .. class:: Popen(args, bufsize=-1, executable=None, stdin=None, stdout=None, \ stderr=None, preexec_fn=None, close_fds=True, shell=False, \ cwd=None, env=None, uni...
trusted_official_docs
CPython Docs
:class:`Popen` class. It offers a lot of flexibility so that developers are able to handle the less common cases not covered by the convenience functions. .. class:: Popen(args, bufsize=-1, executable=None, stdin=None, stdout=None, \ stderr=None, preexec_fn=None, close_fds=True, shell=False, \ cwd=None, env=None, uni...
:class:`Popen` class. It offers a lot of flexibility so that developers are able to handle the less common cases not covered by the convenience functions. .. class:: Popen(args, bufsize=-1, executable=None, stdin=None, stdout=None, \ stderr=None, preexec_fn=None, close_fds=True, shell=False, \ cwd=None, env=None, uni...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f73d8fda-d072-4862-a77e-6204a92abbce
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,271
supabase-export-v2
8afee48596d1b755
true. When used, the internal :class:`Popen` object is automatically created with *stdin* set to :data:`~subprocess.PIPE`, and the *stdin* argument may not be used as well. If *check* is true, and the process exits with a non-zero exit code, a :exc:`CalledProcessError` exception will be raised. Attributes of that exc...
trusted_official_docs
CPython Docs
true. When used, the internal :class:`Popen` object is automatically created with *stdin* set to :data:`~subprocess.PIPE`, and the *stdin* argument may not be used as well. If *check* is true, and the process exits with a non-zero exit code, a :exc:`CalledProcessError` exception will be raised. Attributes of that exc...
true. When used, the internal :class:`Popen` object is automatically created with *stdin* set to :data:`~subprocess.PIPE`, and the *stdin* argument may not be used as well. If *check* is true, and the process exits with a non-zero exit code, a :exc:`CalledProcessError` exception will be raised. Attributes of that exc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f7454c77-c7d1-42cd-9281-dcebdf8f81fa
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,627
supabase-export-v2
d95b56f2143f7986
with a :exc:`CalledProcessError` if the requested operation produces a non-zero return code. The output is still available as the :attr:`~CalledProcessError.output` attribute of the raised exception. In the following examples, we assume that the relevant functions have already been imported from the :mod:`!subprocess` ...
trusted_official_docs
CPython Docs
with a :exc:`CalledProcessError` if the requested operation produces a non-zero return code. The output is still available as the :attr:`~CalledProcessError.output` attribute of the raised exception. In the following examples, we assume that the relevant functions have already been imported from the :mod:`!subprocess` ...
with a :exc:`CalledProcessError` if the requested operation produces a non-zero return code. The output is still available as the :attr:`~CalledProcessError.output` attribute of the raised exception. In the following examples, we assume that the relevant functions have already been imported from the :mod:`!subprocess` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f7b3a372-f914-4e57-b3a0-11428a65a551
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,391
supabase-export-v2
5e378e0054a6852a
``2`` will be closed before the child process is executed. Otherwise when *close_fds* is false, file descriptors obey their inheritable flag as described in :ref:`fd_inheritance`. On Windows, if *close_fds* is true then no handles will be inherited by the child process unless explicitly passed in the ``handle_list`` e...
trusted_official_docs
CPython Docs
``2`` will be closed before the child process is executed. Otherwise when *close_fds* is false, file descriptors obey their inheritable flag as described in :ref:`fd_inheritance`. On Windows, if *close_fds* is true then no handles will be inherited by the child process unless explicitly passed in the ``handle_list`` e...
``2`` will be closed before the child process is executed. Otherwise when *close_fds* is false, file descriptors obey their inheritable flag as described in :ref:`fd_inheritance`. On Windows, if *close_fds* is true then no handles will be inherited by the child process unless explicitly passed in the ``handle_list`` e...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f81db1c9-b477-4eb4-b8f4-94857625ed8e
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,668
supabase-export-v2
f93f321e689bb301
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.11 Added the *encoding* and *errors* parameters.
trusted_official_docs
CPython Docs
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.11 Added the *encoding* and *errors* parameters.
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.11 Added the *encoding* and *errors* parameters.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f8b40af9-c1b8-4afc-9643-306751aec8af
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,425
supabase-export-v2
49410233981f1514
If given, *creationflags*, can be one or more of the following flags: * :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:`RE...
trusted_official_docs
CPython Docs
If given, *creationflags*, can be one or more of the following flags: * :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:`RE...
If given, *creationflags*, can be one or more of the following flags: * :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:`RE...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f9fcd06c-84d1-44dc-b9e7-8cdb48266af3
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,671
supabase-export-v2
df9ba916473334c7
Return output (stdout and stderr) of executing *cmd* in a shell. Like :func:`getstatusoutput`, except the exit code is ignored and the return value is a string containing the command's output. Example::
trusted_official_docs
CPython Docs
Return output (stdout and stderr) of executing *cmd* in a shell. Like :func:`getstatusoutput`, except the exit code is ignored and the return value is a string containing the command's output. Example::
Return output (stdout and stderr) of executing *cmd* in a shell. Like :func:`getstatusoutput`, except the exit code is ignored and the return value is a string containing the command's output. Example::
python, official-docs, cpython, P0
Local_Trusted_Corpus
fc19e2fc-02b9-4a64-b26f-b15b69eb0aad
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,357
supabase-export-v2
9ca239ed5efcc573
platforms, passing :data:`sys.executable` is the recommended way to launch the current Python interpreter again, and use the ``-m`` command-line format to launch an installed module. Resolving the path of *executable* (or the first item of *args*) is platform dependent. For POSIX, see :meth:`os.execvpe`, and note that...
trusted_official_docs
CPython Docs
platforms, passing :data:`sys.executable` is the recommended way to launch the current Python interpreter again, and use the ``-m`` command-line format to launch an installed module. Resolving the path of *executable* (or the first item of *args*) is platform dependent. For POSIX, see :meth:`os.execvpe`, and note that...
platforms, passing :data:`sys.executable` is the recommended way to launch the current Python interpreter again, and use the ``-m`` command-line format to launch an installed module. Resolving the path of *executable* (or the first item of *args*) is platform dependent. For POSIX, see :meth:`os.execvpe`, and note that...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fc3a977f-13bb-4cf5-b48a-57014e449ef1
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,351
supabase-export-v2
f955ad92842e4f39
Popen Constructor ^^^^^^^^^^^^^^^^^ The underlying process creation and management in this module is handled by the :class:`Popen` class. It offers a lot of flexibility so that developers are able to handle the less common cases not covered by the convenience functions.
trusted_official_docs
CPython Docs
Popen Constructor ^^^^^^^^^^^^^^^^^ The underlying process creation and management in this module is handled by the :class:`Popen` class. It offers a lot of flexibility so that developers are able to handle the less common cases not covered by the convenience functions.
Popen Constructor ^^^^^^^^^^^^^^^^^ The underlying process creation and management in this module is handled by the :class:`Popen` class. It offers a lot of flexibility so that developers are able to handle the less common cases not covered by the convenience functions.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fd5fbc15-bdea-451f-a563-b2725cf8f64d
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,421
supabase-export-v2
6c25bfa38fd84c8c
above in :ref:`frequently-used-arguments`. The *universal_newlines* argument is equivalent to *text* and is provided for backwards compatibility. By default, file objects are opened in binary mode. .. versionadded:: 3.6 *encoding* and *errors* were added.
trusted_official_docs
CPython Docs
above in :ref:`frequently-used-arguments`. The *universal_newlines* argument is equivalent to *text* and is provided for backwards compatibility. By default, file objects are opened in binary mode. .. versionadded:: 3.6 *encoding* and *errors* were added.
above in :ref:`frequently-used-arguments`. The *universal_newlines* argument is equivalent to *text* and is provided for backwards compatibility. By default, file objects are opened in binary mode. .. versionadded:: 3.6 *encoding* and *errors* were added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fd7938ad-9004-40c9-85f7-20fc10c6f744
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,370
supabase-export-v2
9c76827ef4f78c0d
command string, and any additional items will be treated as additional arguments to the shell itself. That is to say, :class:`Popen` does the equivalent of:: Popen(['/bin/sh', '-c', args[0], args[1], ...])
trusted_official_docs
CPython Docs
command string, and any additional items will be treated as additional arguments to the shell itself. That is to say, :class:`Popen` does the equivalent of:: Popen(['/bin/sh', '-c', args[0], args[1], ...])
command string, and any additional items will be treated as additional arguments to the shell itself. That is to say, :class:`Popen` does the equivalent of:: Popen(['/bin/sh', '-c', args[0], args[1], ...])
python, official-docs, cpython, P0
Local_Trusted_Corpus
fddf3a9b-fe50-47eb-9cac-44a86c8fb8bd
CPython Docs
file://datasets/cpython/Doc/library/subprocess.rst
unknown
acaa1be4-bd34-48ff-83d7-d17fc3246ce2
24,392
supabase-export-v2
6415bc5eda5c2f7e
true then no handles will be inherited by the child process unless explicitly passed in the ``handle_list`` element of :attr:`STARTUPINFO.lpAttributeList`, or by standard handle redirection. .. versionchanged:: 3.2 The default for *close_fds* was changed from :const:`False` to what is described above.
trusted_official_docs
CPython Docs
true then no handles will be inherited by the child process unless explicitly passed in the ``handle_list`` element of :attr:`STARTUPINFO.lpAttributeList`, or by standard handle redirection. .. versionchanged:: 3.2 The default for *close_fds* was changed from :const:`False` to what is described above.
true then no handles will be inherited by the child process unless explicitly passed in the ``handle_list`` element of :attr:`STARTUPINFO.lpAttributeList`, or by standard handle redirection. .. versionchanged:: 3.2 The default for *close_fds* was changed from :const:`False` to what is described above.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a6c2011-d2c4-43fb-85ae-a8eb7927f922
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,704
supabase-export-v2
1c584c2333068ff5
to use any hash function with a *fixed* digest size. In particular, extendable output functions such as SHAKE-128 or SHAKE-256 cannot be used with HMAC. .. function:: new(key, msg=None, digestmod)
trusted_official_docs
CPython Docs
to use any hash function with a *fixed* digest size. In particular, extendable output functions such as SHAKE-128 or SHAKE-256 cannot be used with HMAC. .. function:: new(key, msg=None, digestmod)
to use any hash function with a *fixed* digest size. In particular, extendable output functions such as SHAKE-128 or SHAKE-256 cannot be used with HMAC. .. function:: new(key, msg=None, digestmod)
python, official-docs, cpython, P0
Local_Trusted_Corpus
0e7e695e-49d1-4a64-9a65-94f8d189f9c3
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,708
supabase-export-v2
c1ebab3ea05e7434
versionchanged:: 3.8 The *digestmod* argument is now required. Pass it as a keyword argument to avoid awkwardness when you do not have an initial *msg*. .. function:: digest(key, msg, digest)
trusted_official_docs
CPython Docs
versionchanged:: 3.8 The *digestmod* argument is now required. Pass it as a keyword argument to avoid awkwardness when you do not have an initial *msg*. .. function:: digest(key, msg, digest)
versionchanged:: 3.8 The *digestmod* argument is now required. Pass it as a keyword argument to avoid awkwardness when you do not have an initial *msg*. .. function:: digest(key, msg, digest)
python, official-docs, cpython, P0
Local_Trusted_Corpus
147f5e4f-07b3-4884-ad65-a5c5d8ac8fe0
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,737
supabase-export-v2
cb308b100824199c
.. function:: compare_digest(a, b) Return ``a == b``. This function uses an approach designed to prevent timing analysis by avoiding content-based short circuiting behaviour, making it appropriate for cryptography. *a* and *b* must both be of the same type: either :class:`str` (ASCII only, as e.g. returned by :meth...
trusted_official_docs
CPython Docs
.. function:: compare_digest(a, b) Return ``a == b``. This function uses an approach designed to prevent timing analysis by avoiding content-based short circuiting behaviour, making it appropriate for cryptography. *a* and *b* must both be of the same type: either :class:`str` (ASCII only, as e.g. returned by :meth...
.. function:: compare_digest(a, b) Return ``a == b``. This function uses an approach designed to prevent timing analysis by avoiding content-based short circuiting behaviour, making it appropriate for cryptography. *a* and *b* must both be of the same type: either :class:`str` (ASCII only, as e.g. returned by :meth...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3b6da02c-07a8-422a-9e09-c4433e2e0fe1
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,714
supabase-export-v2
e61251cb6495910b
.. method:: HMAC.update(msg) Update the hmac object with *msg*. Repeated calls are equivalent to a single call with the concatenation of all the arguments: ``m.update(a); m.update(b)`` is equivalent to ``m.update(a + b)``.
trusted_official_docs
CPython Docs
.. method:: HMAC.update(msg) Update the hmac object with *msg*. Repeated calls are equivalent to a single call with the concatenation of all the arguments: ``m.update(a); m.update(b)`` is equivalent to ``m.update(a + b)``.
.. method:: HMAC.update(msg) Update the hmac object with *msg*. Repeated calls are equivalent to a single call with the concatenation of all the arguments: ``m.update(a); m.update(b)`` is equivalent to ``m.update(a + b)``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3d0584f2-af1f-4883-a60f-b03f6f92490a
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,706
supabase-export-v2
3688451093cdfac2
digest constructor or module for the HMAC object to use. It may be any name suitable to :func:`hashlib.new`. Despite its argument position, it is required. .. versionchanged:: 3.4 Parameter *key* can be a bytes or bytearray object. Parameter *msg* can be of any type supported by :mod:`hashlib`. Parameter *digestmod* c...
trusted_official_docs
CPython Docs
digest constructor or module for the HMAC object to use. It may be any name suitable to :func:`hashlib.new`. Despite its argument position, it is required. .. versionchanged:: 3.4 Parameter *key* can be a bytes or bytearray object. Parameter *msg* can be of any type supported by :mod:`hashlib`. Parameter *digestmod* c...
digest constructor or module for the HMAC object to use. It may be any name suitable to :func:`hashlib.new`. Despite its argument position, it is required. .. versionchanged:: 3.4 Parameter *key* can be a bytes or bytearray object. Parameter *msg* can be of any type supported by :mod:`hashlib`. Parameter *digestmod* c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
50834995-2fe7-4763-a0a1-98ef530f4f96
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,726
supabase-export-v2
c187b9008749299e
Return a copy ("clone") of the hmac object. This can be used to efficiently compute the digests of strings that share a common initial substring. A hash object has the following attributes:
trusted_official_docs
CPython Docs
Return a copy ("clone") of the hmac object. This can be used to efficiently compute the digests of strings that share a common initial substring. A hash object has the following attributes:
Return a copy ("clone") of the hmac object. This can be used to efficiently compute the digests of strings that share a common initial substring. A hash object has the following attributes:
python, official-docs, cpython, P0
Local_Trusted_Corpus
557495c0-2c9f-4168-acf3-488b189638da
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,721
supabase-export-v2
963e25a720f0ae7c
.. method:: HMAC.hexdigest() Like :meth:`digest` except the digest is returned as a string twice the length containing only hexadecimal digits. This may be used to exchange the value safely in email or other non-binary environments.
trusted_official_docs
CPython Docs
.. method:: HMAC.hexdigest() Like :meth:`digest` except the digest is returned as a string twice the length containing only hexadecimal digits. This may be used to exchange the value safely in email or other non-binary environments.
.. method:: HMAC.hexdigest() Like :meth:`digest` except the digest is returned as a string twice the length containing only hexadecimal digits. This may be used to exchange the value safely in email or other non-binary environments.
python, official-docs, cpython, P0
Local_Trusted_Corpus
55d9d515-7e5b-4df0-bda5-19e34c5ed367
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,723
supabase-export-v2
fe8371e121d446b8
.. warning:: When comparing the output of :meth:`hexdigest` to an externally supplied digest during a verification routine, it is recommended to use the :func:`compare_digest` function instead of the ``==`` operator to reduce the vulnerability to timing attacks.
trusted_official_docs
CPython Docs
.. warning:: When comparing the output of :meth:`hexdigest` to an externally supplied digest during a verification routine, it is recommended to use the :func:`compare_digest` function instead of the ``==`` operator to reduce the vulnerability to timing attacks.
.. warning:: When comparing the output of :meth:`hexdigest` to an externally supplied digest during a verification routine, it is recommended to use the :func:`compare_digest` function instead of the ``==`` operator to reduce the vulnerability to timing attacks.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5b62697f-8eff-4351-b563-d291fa4ec1d6
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,709
supabase-export-v2
8f9e0cda22bb1099
.. function:: digest(key, msg, digest) Return digest of *msg* for given secret *key* and *digest*. The function is equivalent to ``HMAC(key, msg, digest).digest()``, but uses an optimized C or inline implementation, which is faster for messages that fit into memory. The parameters *key*, *msg*, and *digest* have th...
trusted_official_docs
CPython Docs
.. function:: digest(key, msg, digest) Return digest of *msg* for given secret *key* and *digest*. The function is equivalent to ``HMAC(key, msg, digest).digest()``, but uses an optimized C or inline implementation, which is faster for messages that fit into memory. The parameters *key*, *msg*, and *digest* have th...
.. function:: digest(key, msg, digest) Return digest of *msg* for given secret *key* and *digest*. The function is equivalent to ``HMAC(key, msg, digest).digest()``, but uses an optimized C or inline implementation, which is faster for messages that fit into memory. The parameters *key*, *msg*, and *digest* have th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6bd588dd-eadf-4f1a-afd2-f81f631c73bc
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,719
supabase-export-v2
f1da1562a56f2d33
.. warning:: When comparing the output of :meth:`digest` to an externally supplied digest during a verification routine, it is recommended to use the :func:`compare_digest` function instead of the ``==`` operator to reduce the vulnerability to timing attacks.
trusted_official_docs
CPython Docs
.. warning:: When comparing the output of :meth:`digest` to an externally supplied digest during a verification routine, it is recommended to use the :func:`compare_digest` function instead of the ``==`` operator to reduce the vulnerability to timing attacks.
.. warning:: When comparing the output of :meth:`digest` to an externally supplied digest during a verification routine, it is recommended to use the :func:`compare_digest` function instead of the ``==`` operator to reduce the vulnerability to timing attacks.
python, official-docs, cpython, P0
Local_Trusted_Corpus
93a39234-7613-4fc7-b68d-e6ede4a2d1c8
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,705
supabase-export-v2
33cdf5be79b87c4b
.. function:: new(key, msg=None, digestmod) Return a new hmac object. *key* is a bytes or bytearray object giving the secret key. If *msg* is present, the method call ``update(msg)`` is made. *digestmod* is the digest name, digest constructor or module for the HMAC object to use. It may be any name suitable to :func:...
trusted_official_docs
CPython Docs
.. function:: new(key, msg=None, digestmod) Return a new hmac object. *key* is a bytes or bytearray object giving the secret key. If *msg* is present, the method call ``update(msg)`` is made. *digestmod* is the digest name, digest constructor or module for the HMAC object to use. It may be any name suitable to :func:...
.. function:: new(key, msg=None, digestmod) Return a new hmac object. *key* is a bytes or bytearray object giving the secret key. If *msg* is present, the method call ``update(msg)`` is made. *digestmod* is the digest name, digest constructor or module for the HMAC object to use. It may be any name suitable to :func:...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9d569f78-3842-455c-8f70-a14e0ef7afda
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,739
supabase-export-v2
9a20305ad7c5d0b7
.. note:: If *a* and *b* are of different lengths, or if an error occurs, a timing attack could theoretically reveal information about the types and lengths of *a* and *b*—but not their values.
trusted_official_docs
CPython Docs
.. note:: If *a* and *b* are of different lengths, or if an error occurs, a timing attack could theoretically reveal information about the types and lengths of *a* and *b*—but not their values.
.. note:: If *a* and *b* are of different lengths, or if an error occurs, a timing attack could theoretically reveal information about the types and lengths of *a* and *b*—but not their values.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ab862b58-5c4c-48d6-ac25-bf9f18ca76d7
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,707
supabase-export-v2
4fe3be3a55dc272c
a bytes or bytearray object. Parameter *msg* can be of any type supported by :mod:`hashlib`. Parameter *digestmod* can be the name of a hash algorithm. .. versionchanged:: 3.8 The *digestmod* argument is now required. Pass it as a keyword argument to avoid awkwardness when you do not have an initial *msg*.
trusted_official_docs
CPython Docs
a bytes or bytearray object. Parameter *msg* can be of any type supported by :mod:`hashlib`. Parameter *digestmod* can be the name of a hash algorithm. .. versionchanged:: 3.8 The *digestmod* argument is now required. Pass it as a keyword argument to avoid awkwardness when you do not have an initial *msg*.
a bytes or bytearray object. Parameter *msg* can be of any type supported by :mod:`hashlib`. Parameter *digestmod* can be the name of a hash algorithm. .. versionchanged:: 3.8 The *digestmod* argument is now required. Pass it as a keyword argument to avoid awkwardness when you do not have an initial *msg*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ac239fe4-0771-4e1d-ab3c-b155392855c0
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,710
supabase-export-v2
2e54b8a8858299a0
or inline implementation, which is faster for messages that fit into memory. The parameters *key*, *msg*, and *digest* have the same meaning as in :func:`~hmac.new`. CPython implementation detail, the optimized C implementation is only used when *digest* is a string and name of a digest algorithm, which is supported ...
trusted_official_docs
CPython Docs
or inline implementation, which is faster for messages that fit into memory. The parameters *key*, *msg*, and *digest* have the same meaning as in :func:`~hmac.new`. CPython implementation detail, the optimized C implementation is only used when *digest* is a string and name of a digest algorithm, which is supported ...
or inline implementation, which is faster for messages that fit into memory. The parameters *key*, *msg*, and *digest* have the same meaning as in :func:`~hmac.new`. CPython implementation detail, the optimized C implementation is only used when *digest* is a string and name of a digest algorithm, which is supported ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
dac75403-03cf-4b66-a96f-56e95fbc356e
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,715
supabase-export-v2
ccf3634aaf0d6a50
with *msg*. Repeated calls are equivalent to a single call with the concatenation of all the arguments: ``m.update(a); m.update(b)`` is equivalent to ``m.update(a + b)``. .. versionchanged:: 3.4 Parameter *msg* can be of any type supported by :mod:`hashlib`.
trusted_official_docs
CPython Docs
with *msg*. Repeated calls are equivalent to a single call with the concatenation of all the arguments: ``m.update(a); m.update(b)`` is equivalent to ``m.update(a + b)``. .. versionchanged:: 3.4 Parameter *msg* can be of any type supported by :mod:`hashlib`.
with *msg*. Repeated calls are equivalent to a single call with the concatenation of all the arguments: ``m.update(a); m.update(b)`` is equivalent to ``m.update(a + b)``. .. versionchanged:: 3.4 Parameter *msg* can be of any type supported by :mod:`hashlib`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
eb727caa-71ba-4a77-aa43-9cf09f6b8bc7
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,703
supabase-export-v2
2db9c739de2eb50b
-------------- This module implements the HMAC algorithm as described by :rfc:`2104`. The interface allows to use any hash function with a *fixed* digest size. In particular, extendable output functions such as SHAKE-128 or SHAKE-256 cannot be used with HMAC.
trusted_official_docs
CPython Docs
-------------- This module implements the HMAC algorithm as described by :rfc:`2104`. The interface allows to use any hash function with a *fixed* digest size. In particular, extendable output functions such as SHAKE-128 or SHAKE-256 cannot be used with HMAC.
-------------- This module implements the HMAC algorithm as described by :rfc:`2104`. The interface allows to use any hash function with a *fixed* digest size. In particular, extendable output functions such as SHAKE-128 or SHAKE-256 cannot be used with HMAC.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f4aaa580-1b33-4f40-906c-cb1d2ada3d9f
CPython Docs
file://datasets/cpython/Doc/library/hmac.rst
unknown
a04d0a43-67ef-4fa3-b17f-022131dad5c4
24,717
supabase-export-v2
18ba0b6b0d254d80
.. method:: HMAC.digest() Return the digest of the bytes passed to the :meth:`update` method so far. This bytes object will be the same length as the *digest_size* of the digest given to the constructor. It may contain non-ASCII bytes, including NUL bytes.
trusted_official_docs
CPython Docs
.. method:: HMAC.digest() Return the digest of the bytes passed to the :meth:`update` method so far. This bytes object will be the same length as the *digest_size* of the digest given to the constructor. It may contain non-ASCII bytes, including NUL bytes.
.. method:: HMAC.digest() Return the digest of the bytes passed to the :meth:`update` method so far. This bytes object will be the same length as the *digest_size* of the digest given to the constructor. It may contain non-ASCII bytes, including NUL bytes.
python, official-docs, cpython, P0
Local_Trusted_Corpus