[Python-checkins] peps: After discussing with Guido, allow both 'f' and 'F'.

eric.smith python-checkins at python.org
Thu Sep 10 10:03:30 CEST 2015


https://hg.python.org/peps/rev/b64085f15c13
changeset: 6046:b64085f15c13
user: Eric V. Smith <eric at trueblade.com>
date: Thu Sep 10 04:03:33 2015 -0400
summary:
 After discussing with Guido, allow both 'f' and 'F'.
files:
 pep-0498.txt | 9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/pep-0498.txt b/pep-0498.txt
--- a/pep-0498.txt
+++ b/pep-0498.txt
@@ -170,10 +170,11 @@
 =============
 
 In source code, f-strings are string literals that are prefixed by the
-letter 'f'. 'f' may be combined with 'r', in either order, to produce
-raw f-string literals. 'f' may not be combined with 'b': this PEP does
-not propose to add binary f-strings. 'f' may also be combined with
-'u', in either order, although adding 'u' has no effect.
+letter 'f' or 'F'. Everywhere this PEP uses 'f', 'F' may also be
+used. 'f' may be combined with 'r', in either order, to produce raw
+f-string literals. 'f' may not be combined with 'b': this PEP does not
+propose to add binary f-strings. 'f' may also be combined with 'u', in
+either order, although adding 'u' has no effect.
 
 When tokenizing source files, f-strings use the same rules as normal
 strings, raw strings, binary strings, and triple quoted strings. That
-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /