diff --git a/pep-0501.txt b/pep-0501.txt index 62d3359524d3..a27c1fa71d01 100644 --- a/pep-0501.txt +++ b/pep-0501.txt @@ -1,7 +1,5 @@ PEP: 501 Title: General purpose string template literals -Version: $Revision$ -Last-Modified: $Date$ Author: Nick Coghlan , Nick Humrich Discussions-To: https://discuss.python.org/t/pep-501-reopen-general-purpose-string-template-literals/24625 Status: Draft @@ -435,7 +433,7 @@ accessing external programs, without the significant risks posed by running ``os.system`` or enabling the system shell when using the ``subprocess`` module APIs, which will provide an interface for running external programs inspired by that offered by the -`Julia programming language `__, +`Julia programming language `__, only with the backtick based ``\`cat $filename\``` syntax replaced by ``t"cat {filename}"`` style template literals. (see more below) @@ -461,6 +459,8 @@ Unmatched braces:: File "", line 1 t'x={x' ^ + t'x={x' + ^ SyntaxError: missing '}' in template literal expression Invalid expressions:: @@ -620,11 +620,12 @@ This way, your function can provide the same API for both static and dynamic str def my_safe_function(string_like_object: LiteralString | TemplateLiteral): ... + ... Discussion ========== -Refer to :pep:`498` for additional discussion, as several of the points there +Refer to :pep:`498` for previous discussion, as several of the points there also apply to this PEP. Support for binary interpolation