Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion peps/pep-0787.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PEP: 787
Title: Safer subprocess usage using t-strings
Author: Nick Humrich <nick@humrich.us>, Alyssa Coghlan <ncoghlan@gmail.com>
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
Expand All @@ -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 <tstrprocess>` through the Python 3.14 beta
period (and beyond), before preparing a revised draft of the proposal for Python 3.15.

Motivation
==========

Expand Down