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 22Title: Safer subprocess usage using t-strings
33Author: Nick Humrich <nick@humrich.us>, Alyssa Coghlan <ncoghlan@gmail.com>
44Discussions-To: https://discuss.python.org/t/pep-787-safer-subprocess-usage-using-t-strings/88311
5- Status: Draft
5+ Status: Deferred
66Type: Standards Track
77Requires: 750
88Created: 13-Apr-2025
@@ -18,6 +18,18 @@ proposes extending the :mod:`subprocess` and :mod:`shlex` modules to natively su
1818safer and more ergonomic shell command execution with interpolated values, as well as
1919serving as a reference implementation for the t-string feature to improve API ergonomics.
2020
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+
2133Motivation
2234==========
2335
You can’t perform that action at this time.
0 commit comments