PEP 8: update text about backlash (#2244)
This commit is contained in:
parent
d58d084caf
commit
c5f4d78b56
|
@ -227,8 +227,8 @@ parentheses. These should be used in preference to using a backslash
|
||||||
for line continuation.
|
for line continuation.
|
||||||
|
|
||||||
Backslashes may still be appropriate at times. For example, long,
|
Backslashes may still be appropriate at times. For example, long,
|
||||||
multiple ``with``-statements cannot use implicit continuation, so
|
multiple ``with``-statements could not use implicit continuation
|
||||||
backslashes are acceptable::
|
before Python 3.10, so backslashes were acceptable for that case::
|
||||||
|
|
||||||
with open('/path/to/some/file/you/want/to/read') as file_1, \
|
with open('/path/to/some/file/you/want/to/read') as file_1, \
|
||||||
open('/path/to/some/file/being/written', 'w') as file_2:
|
open('/path/to/some/file/being/written', 'w') as file_2:
|
||||||
|
|
Loading…
Reference in New Issue