diff --git a/peps/pep-0787.rst b/peps/pep-0787.rst index 799a8b03656..45d9ea977ef 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 :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 ==========