diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-04-28 21:05:10 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-04-28 21:05:10 (GMT) |
commit | a2f837f751bd38c85636c6431a11b216228da92e (patch) | |
tree | f2f28d4e8e1c3f0f63eb0e6047892ce0a416ed14 /Doc/whatsnew | |
parent | a288faef8ee3179a71d2a112a5b0321c327e6ac1 (diff) | |
download | cpython-a2f837f751bd38c85636c6431a11b216228da92e.zip cpython-a2f837f751bd38c85636c6431a11b216228da92e.tar.gz cpython-a2f837f751bd38c85636c6431a11b216228da92e.tar.bz2 |
Document the fact that '\U' and '\u' escapes are not treated specially in 3.0 (see issue 2541)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.0.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst index 7f8ba47..11b56cc 100644 --- a/Doc/whatsnew/3.0.rst +++ b/Doc/whatsnew/3.0.rst @@ -167,6 +167,9 @@ Strings and Bytes explicitly convert between them, using the :meth:`str.encode` (str -> bytes) or :meth:`bytes.decode` (bytes -> str) methods. +* All backslashes in raw strings are interpreted literally. This means that + Unicode escapes are not treated specially. + .. XXX add bytearray * PEP 3112: Bytes literals, e.g. ``b"abc"``, create :class:`bytes` instances. @@ -183,6 +186,8 @@ Strings and Bytes * The :mod:`StringIO` and :mod:`cStringIO` modules are gone. Instead, import :class:`io.StringIO` or :class:`io.BytesIO`. +* ``'\U'`` and ``'\u'`` escapes in raw strings are not treated specially. + PEP 3101: A New Approach to String Formatting ============================================= |