File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 2
2
Title: Safer subprocess usage using t-strings
3
3
Author: Nick Humrich <nick@humrich.us>, Alyssa Coghlan <ncoghlan@gmail.com>
4
4
Discussions-To: https://discuss.python.org/t/pep-787-safer-subprocess-usage-using-t-strings/88311
5
- Status: Draft
5
+ Status: Deferred
6
6
Type: Standards Track
7
7
Requires: 750
8
8
Created: 13-Apr-2025
@@ -18,6 +18,18 @@ proposes extending the :mod:`subprocess` and :mod:`shlex` modules to natively su
18
18
safer and more ergonomic shell command execution with interpolated values, as well as
19
19
serving as a reference implementation for the t-string feature to improve API ergonomics.
20
20
21
+ PEP Deferral
22
+ ============
23
+
24
+ During the discussions of the initial draft of the PEP, it became clear that t-strings provide
25
+ a potential opportunity to offer ``shell=True `` levels of syntactic convenience for complex
26
+ subprocess invocations without all of the security and cross-platform compatibility concerns
27
+ that arise with giving user provided text access to a full system shell.
28
+
29
+ To that end, the PEP authors now plan to work on an experimental :pypi: `t-string
30
+ based subprocess invocation library <tstrprocess> ` through the Python 3.14 beta
31
+ period (and beyond), before preparing a revised draft of the proposal for Python 3.15.
32
+
21
33
Motivation
22
34
==========
23
35
You can’t perform that action at this time.
0 commit comments