diff options
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/2.6.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index 8a3a9d2..80a6c3e 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -734,7 +734,8 @@ and it also supports the ``b''`` notation. There's also a ``__future__`` import that causes all string literals to become Unicode strings. This means that ``\u`` escape sequences -can be used to include Unicode characters. +can be used to include Unicode characters:: + from __future__ import unicode_literals @@ -744,6 +745,7 @@ can be used to include Unicode characters. print len(s) # 12 Unicode characters + .. seealso:: :pep:`3112` - Bytes literals in Python 3000 |