Commit 3a9ae83
pythongh-60107: Remove a copy from RawIOBase.read (python#141532)
If the underlying I/O class keeps a reference to the memory, raise BufferError.
Co-authored-by: Victor Stinner <vstinner@python.org>1 parent 26b86e7 commit 3a9ae83
7 files changed
Lines changed: 39 additions & 11 deletions
File tree
- Include/internal
- Lib/test/test_io
- Misc/NEWS.d/next/Library
- Modules/_io
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| 796 | + | |
796 | 797 | | |
797 | 798 | | |
798 | 799 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
612 | 631 | | |
613 | 632 | | |
614 | 633 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
930 | | - | |
931 | | - | |
932 | 930 | | |
933 | | - | |
| 931 | + | |
934 | 932 | | |
| 933 | + | |
935 | 934 | | |
936 | 935 | | |
937 | 936 | | |
938 | | - | |
939 | | - | |
| 937 | + | |
940 | 938 | | |
941 | 939 | | |
942 | 940 | | |
943 | | - | |
| 941 | + | |
944 | 942 | | |
945 | | - | |
946 | | - | |
| 943 | + | |
947 | 944 | | |
948 | 945 | | |
949 | | - | |
950 | 946 | | |
951 | 947 | | |
952 | 948 | | |
953 | | - | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
954 | 953 | | |
| 954 | + | |
955 | 955 | | |
956 | | - | |
| 956 | + | |
957 | 957 | | |
958 | 958 | | |
959 | 959 | | |
| |||
0 commit comments