You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding read/readline() after write appends to EOF, not to the position #117095
I've been working on this issue, and it seems that the bug doesn't occur when tell() and seek() are used between the write and readline calls. I'm struggling to properly use the built in seek and tell functions within the textio.c file however, if someone has experience in this module I would appreciate the help.
Activity
TooPercentMilk commentedon Apr 2, 2024
I'm a beginner contributor and I'm looking to work on this issue, what should I do?
TooPercentMilk commentedon Apr 23, 2024
I've been working on this issue, and it seems that the bug doesn't occur when tell() and seek() are used between the write and readline calls. I'm struggling to properly use the built in seek and tell functions within the textio.c file however, if someone has experience in this module I would appreciate the help.
TooPercentMilk commentedon Apr 25, 2024
For anyone who wants to take over this task, here are some test cases I wrote.
`
`
test1.txt
test1_corr.txt
test1_orig.txt
test2.txt
test2_corr.txt
test2_orig.txt
test3.txt
test3_corr.txt
test3_orig.txt
vadmium commentedon Jul 26, 2024
Might be related to the existing bug reports about writing after reading: #82891 and #70346
cmaloney commentedon Oct 9, 2026
The reproducers here pass on python 3.13, 3.14, and 3.15. They seem to have been fixed by gh-115059 which was backported to 3.11.