Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Doc/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ If you don't want characters prefaced by ``\`` to be interpreted as
special characters, you can use *raw strings* by adding an ``r`` before
the first quote::

>>> print('C:\some\name') # here \n means newline!
C:\some
>>> print('C:\this\name') # here \t means tab, \n means newline
C: his
ame
>>> print(r'C:\some\name') # note the r before the quote
C:\some\name
>>> print(r'C:\this\name') # note the r before the quote
C:\this\name

There is one subtle aspect to raw strings: a raw string may not end in
an odd number of ``\`` characters; see
Expand Down
Loading