Repository navigation
Commit 441c010
authored
Call the internal reader's `readline()` in `_io` and `_pyio`.
There is behaviour change. `BufferedRWPair.readline()` would behave like `BufferedReader.readline()`: in C, a non-blocking read with no data returns the partial line or `b''` instead of raising `OSError`, a closed pair always raises `ValueError`, and subclass overrides of `peek()` and `read()` would no longer apply.
1 parent 6c9f2b6 commit 441c010
5 files changed
Lines changed: 83 additions & 1 deletion
File tree
- Lib
- test/test_io
- Misc/NEWS.d/next/Library
- Modules/_io
- clinic
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1404 | 1404 | | |
1405 | 1405 | | |
1406 | 1406 | | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
1407 | 1416 | | |
1408 | 1417 | | |
1409 | 1418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1060 | 1074 | | |
1061 | 1075 | | |
1062 | 1076 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2394 | 2394 | | |
2395 | 2395 | | |
2396 | 2396 | | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
2397 | 2416 | | |
2398 | 2417 | | |
2399 | 2418 | | |
| |||
2735 | 2754 | | |
2736 | 2755 | | |
2737 | 2756 | | |
| 2757 | + | |
2738 | 2758 | | |
2739 | 2759 | | |
2740 | 2760 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments