summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-04-28 21:05:10 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-04-28 21:05:10 (GMT)
commita2f837f751bd38c85636c6431a11b216228da92e (patch)
treef2f28d4e8e1c3f0f63eb0e6047892ce0a416ed14 /Doc/whatsnew
parenta288faef8ee3179a71d2a112a5b0321c327e6ac1 (diff)
downloadcpython-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.rst5
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
=============================================