diff options
author | Eric V. Smith <eric@trueblade.com> | 2016-09-10 01:56:20 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2016-09-10 01:56:20 (GMT) |
commit | 451d0e38fcf50d976236d7d00ccfe8c1a2305086 (patch) | |
tree | 29e15833e76714f8f0f8b906871b82c8c1a42967 /Misc/NEWS | |
parent | 052828db1538bf0d42d7e256da13c6e183974a13 (diff) | |
download | cpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.zip cpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.tar.gz cpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.tar.bz2 |
Issue 27948: Allow backslashes in the literal string portion of f-strings, but not in the expressions. Also, require expressions to begin and end with literal curly braces.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -10,6 +10,13 @@ What's New in Python 3.6.0 beta 1 Core and Builtins ----------------- +- Issue #27948: In f-strings, only allow backslashes inside the braces + (where the expressions are). This is a breaking change from the 3.6 + alpha releases, where backslashes are allowed anywhere in an + f-string. Also, require that expressions inside f-strings be + enclosed within literal braces, and not escapes like + f'\x7b"hi"\x7d'. + - Issue #28046: Remove platform-specific directories from sys.path. - Issue #25758: Prevents zipimport from unnecessarily encoding a filename @@ -56,11 +63,6 @@ Core and Builtins - Issue #27355: Removed support for Windows CE. It was never finished, and Windows CE is no longer a relevant platform for Python. -- Issue #27921: Disallow backslashes in f-strings. This is a temporary - restriction: in beta 2, backslashes will only be disallowed inside - the braces (where the expressions are). This is a breaking change - from the 3.6 alpha releases. - - Implement PEP 523. - Issue #27870: A left shift of zero by a large integer no longer attempts |