Skip to content

Commit a062871

Browse files
committed
Match tutorial output to real interpreter output
1 parent 149c465 commit a062871

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/tutorial/introduction.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ If you don't want characters prefaced by ``\`` to be interpreted as
184184
special characters, you can use *raw strings* by adding an ``r`` before
185185
the first quote::
186186

187-
>>> print('C:\some\name') # here \n means newline!
187+
>>> print('C:\some\name') # here \n means newline, and \s means nothing!
188+
<python-input-0>:1: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
188189
C:\some
189190
ame
190191
>>> print(r'C:\some\name') # note the r before the quote

0 commit comments

Comments
 (0)