1
1
PEP: 502
2
2
Title: String Interpolation - Extended Discussion
3
- Version: $Revision$
4
- Last-Modified: $Date$
5
3
Author: Mike G. Miller
6
4
Status: Rejected
7
5
Type: Informational
@@ -22,7 +20,7 @@ To recap that PEP,
22
20
a string prefix was introduced that marks the string as a template to be
23
21
rendered.
24
22
These formatted strings may contain one or more expressions
25
- built on `the existing syntax`_ of ``str.format()``.
23
+ built on `the existing syntax`_ of ``str.format()``. [10]_ [11]_
26
24
The formatted string expands at compile-time into a conventional string format
27
25
operation,
28
26
with the given expressions from its text extracted and passed instead as
@@ -650,78 +648,52 @@ References
650
648
==========
651
649
652
650
.. [1] Briefer String Format
653
-
654
- (https://mail.python.org/pipermail/python-ideas/2015-July/034659.html)
651
+ (https://mail.python.org/pipermail/python-ideas/2015-July/034659.html)
655
652
656
653
.. [2] Briefer String Format
657
-
658
- (https://mail.python.org/pipermail/python-ideas/2015-July/034669.html)
654
+ (https://mail.python.org/pipermail/python-ideas/2015-July/034669.html)
659
655
660
656
.. [3] Briefer String Format
661
-
662
- (https://mail.python.org/pipermail/python-ideas/2015-July/034701.html)
657
+ (https://mail.python.org/pipermail/python-ideas/2015-July/034701.html)
663
658
664
659
.. [4] Bash Docs
665
-
666
- (http://www.tldp.org/LDP/abs/html/arithexp.html)
660
+ (https://tldp.org/LDP/abs/html/arithexp.html)
667
661
668
662
.. [5] Bash Docs
669
-
670
- (http://www.tldp.org/LDP/abs/html/commandsub.html)
663
+ (https://tldp.org/LDP/abs/html/commandsub.html)
671
664
672
665
.. [6] Perl Cookbook
673
-
674
- (http://docstore.mik.ua/orelly/perl/cookbook/ch01_11.htm)
666
+ (https://docstore.mik.ua/orelly/perl/cookbook/ch01_11.htm)
675
667
676
668
.. [7] Perl Docs
677
-
678
- (http://perl6maven.com/perl6-scalar-array-and-hash-interpolation)
669
+ (https://web.archive.org/web/20121025185907/https://perl6maven.com/perl6-scalar-array-and-hash-interpolation)
679
670
680
671
.. [8] Ruby Docs
681
-
682
- (http://ruby-doc.org/core-2.1.1/doc/syntax/literals_rdoc.html#label-Strings)
672
+ (http://ruby-doc.org/core-2.1.1/doc/syntax/literals_rdoc.html#label-Strings)
683
673
684
674
.. [9] Ruby Docs
685
-
686
- (https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Literals#Interpolation)
675
+ (https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Literals#Interpolation)
687
676
688
677
.. [10] Python Str.Format Syntax
689
-
690
- (https://docs.python.org/3/library/string.html#format-string-syntax)
678
+ (https://docs.python.org/3.6/library/string.html#format-string-syntax)
691
679
692
680
.. [11] Python Format-Spec Mini Language
693
-
694
- (https://docs.python.org/3/library/string.html#format-specification-mini-language)
681
+ (https://docs.python.org/3.6/library/string.html#format-specification-mini-language)
695
682
696
683
.. [12] Escaping of Input Variables
697
-
698
- (https://mail.python.org/pipermail/python-ideas/2015-August/035532.html)
684
+ (https://mail.python.org/pipermail/python-ideas/2015-August/035532.html)
699
685
700
686
.. [13] Environment Access and Command Substitution
701
-
702
- (https://mail.python.org/pipermail/python-ideas/2015-August/035554.html)
687
+ (https://mail.python.org/pipermail/python-ideas/2015-August/035554.html)
703
688
704
689
.. [14] Extensible String Prefixes
705
-
706
- (https://mail.python.org/pipermail/python-ideas/2015-August/035336.html)
707
-
690
+ (https://mail.python.org/pipermail/python-ideas/2015-August/035336.html)
708
691
709
692
.. [15] Literal String Formatting
710
-
711
- (https://mail.python.org/pipermail/python-dev/2015-August/141289.html)
693
+ (https://mail.python.org/pipermail/python-dev/2015-August/141289.html)
712
694
713
695
714
696
Copyright
715
697
=========
716
698
717
699
This document has been placed in the public domain.
718
-
719
-
720
- ..
721
- Local Variables:
722
- mode: indented-text
723
- indent-tabs-mode: nil
724
- sentence-end-double-space: t
725
- fill-column: 70
726
- coding: utf-8
727
- End:
0 commit comments