mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Whitespace normalization.
This commit is contained in:
parent
b7e898a0e2
commit
4e0e1b6a54
32 changed files with 144 additions and 166 deletions
|
|
@ -205,7 +205,7 @@ Bummers:
|
|||
docstring, which will preserve your backslahses exactly as you type
|
||||
them:
|
||||
|
||||
>>> def f(x):
|
||||
>>> def f(x):
|
||||
... r'''Backslashes in a raw docstring: m\n'''
|
||||
>>> print f.__doc__
|
||||
Backslashes in a raw docstring: m\n
|
||||
|
|
@ -215,11 +215,11 @@ Bummers:
|
|||
Alternatively, you can double each backslash in the doctest version
|
||||
(and not use a raw string):
|
||||
|
||||
>>> def f(x):
|
||||
>>> def f(x):
|
||||
... '''Backslashes in a raw docstring: m\\n'''
|
||||
>>> print f.__doc__
|
||||
Backslashes in a raw docstring: m\n
|
||||
|
||||
|
||||
The starting column doesn't matter:
|
||||
|
||||
>>> assert "Easy!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue