8000 gh-55688: Add note about ending backslashes for raw strings by slateny · Pull Request #94768 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-55688: Add note about ending backslashes for raw strings #94768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 28, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Be more specific with platform
  • Loading branch information
slateny committed Oct 24, 2022
commit 81d05a153f9707e32c5db313969c0a480ec81281
3 changes: 2 additions & 1 deletion Doc/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ Another is to add a blank character before the quote and then remove it::

>>> fn = r'C:\this\will\work\ '.strip()

It is also possible to use :func:`os.path.join` (by leaving the last parameter empty).
It is also possible to use :func:`os.path.join` to append a backslash on Windows
(by leaving the last parameter empty).

String literals can span multiple lines. One way is using triple-quotes:
``"""..."""`` or ``'''...'''``. End of lines are automatically
Expand Down
0