Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f78310

Browse files
committed
Open
1 parent 7d8c5da commit 9f78310

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -888,25 +888,25 @@ while True:
888888
```
889889

890890
#### Modes:
891-
* `'r'` - read (default)
892-
* `'w'` - write (truncate)
893-
* `'x'` - write or fail if file already exists
894-
* `'a'` - append
895-
* `'w+'` - read and write (truncate)
896-
* `'r+'` - read and write from beginning
897-
* `'a+'` - read and write from end
898-
* `'b'` - binary mode
899-
* `'t'` - text mode (default)
891+
* `'r'` - Read (default).
892+
* `'w'` - Write (truncate).
893+
* `'x'` - Write or fail if file already exists.
894+
* `'a'` - Append.
895+
* `'w+'` - Read and write (truncate).
896+
* `'r+'` - Read and write from beginning.
897+
* `'a+'` - Read and write from the end.
898+
* `'b'` - Binary mode.
899+
* `'t'` - Text mode (default).
900900

901901
#### Newline - input:
902-
* `None` - Input is broken on `'\n'`, `'\r'` and `'\r\n'`. `'\r'` and `'\r\n'` are translated to `'\n'`.
902+
* `'None'` - Input is broken on `'\n'`, `'\r'` and `'\r\n'`. `'\r'` and `'\r\n'` are translated to `'\n'`.
903903
* `''` - Input is broken on `'\n'`, `'\r'` and `'\r\n'`.
904904
* `'\n'` - Input is broken on `'\n'`.
905905
* `'\r'` - Input is broken on `'\r'`.
906906
* `'\r\n'` - Input is broken on `'\r\n'`.
907907

908908
#### Newline - output:
909-
* `None` - Any `'\n'` is translated to system default line separator.
909+
* `'None'` - Any `'\n'` is translated to system default line separator.
910910
* `''` - No translation.
911911
* `'\n'` - No translation.
912912
* `'\r'` - Any `'\n'` is translated to `'\r'`.

0 commit comments

Comments
 (0)