New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOError after normal write #42254
Comments
After some Bughunting of Code with ConfigParser stuff fp = open('bla','w+'
fp.readline()
fp.write('bla')
Traceback (most recent call last):
File "<pyshell#11>", line 1, in ?
fp.write('bla')
IOError: (0, 'Error') The same test under linux is a success. These teste have been run on the newest XP with |
Logged In: YES Well, this is pilot error, inherited from the limitations of C I/O: fp.seek(fp.tell()) between your readline() and your write(). |
Logged In: YES I could not believe it and was searching for verification for this |
Logged In: YES It's not _necessary_ to design an I/O library this way, and the |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: