You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Doc/tutorial/introduction.rst
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,7 +184,8 @@ If you don't want characters prefaced by ``\`` to be interpreted as
184
184
special characters, you can use *raw strings* by adding an ``r`` before
185
185
the first quote::
186
186
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.
188
189
C:\some
189
190
ame
190
191
>>> print(r'C:\some\name') # note the r before the quote
0 commit comments