From 6c5ba9239f04d1006c172e6ecf14cf40ec03cb16 Mon Sep 17 00:00:00 2001 From: Alyssa Coghlan Date: Sun, 27 Apr 2025 14:22:31 +1000 Subject: [PATCH 1/2] PEP 787: defer pending PyPI library experimentation --- peps/pep-0787.rst | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/peps/pep-0787.rst b/peps/pep-0787.rst index 799a8b03656..6e9d92eb369 100644 --- a/peps/pep-0787.rst +++ b/peps/pep-0787.rst @@ -2,7 +2,7 @@ PEP: 787 Title: Safer subprocess usage using t-strings Author: Nick Humrich , Alyssa Coghlan Discussions-To: https://discuss.python.org/t/pep-787-safer-subprocess-usage-using-t-strings/88311 -Status: Draft +Status: Deferred Type: Standards Track Requires: 750 Created: 13-Apr-2025 @@ -18,6 +18,18 @@ proposes extending the :mod:`subprocess` and :mod:`shlex` modules to natively su safer and more ergonomic shell command execution with interpolated values, as well as serving as a reference implementation for the t-string feature to improve API ergonomics. +PEP Deferral +============ + +During the discussions of the initial draft of the PEP, it became clear that t-strings provide +a potential opportunity to offer ``shell=True`` levels of syntactic convenience for complex +subprocess invocations without all of the security and cross-platform compatibility concerns +that arise with giving user provided text access to a full system shell. + +To that end, the PEP authors now plan to work on an experimental `t-string based subprocess +invocation library `__ through the Python 3.14 beta +period (and beyond), before preparing a revised draft of the proposal for Python 3.15. + Motivation ========== From 1be41e4efc4afcbadad45cb223ed3e0572942e3e Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Sun, 27 Apr 2025 16:15:54 +0100 Subject: [PATCH 2/2] Use extlinks Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- peps/pep-0787.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0787.rst b/peps/pep-0787.rst index 6e9d92eb369..45d9ea977ef 100644 --- a/peps/pep-0787.rst +++ b/peps/pep-0787.rst @@ -26,8 +26,8 @@ a potential opportunity to offer ``shell=True`` levels of syntactic convenience subprocess invocations without all of the security and cross-platform compatibility concerns that arise with giving user provided text access to a full system shell. -To that end, the PEP authors now plan to work on an experimental `t-string based subprocess -invocation library `__ through the Python 3.14 beta +To that end, the PEP authors now plan to work on an experimental :pypi:`t-string +based subprocess invocation library ` through the Python 3.14 beta period (and beyond), before preparing a revised draft of the proposal for Python 3.15. Motivation